Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Error Processing Resource

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using oracle 8.1.7 database on windows2000 advanced server and XSU
When i generate an xml file from the database tables, i get an error
message on the internet explorer:
"A name contained an invalid character. Error Processing Resource".
The problem is that some of the tags are cut into two and the second goes
to a new line when the xml file is generated. If i open the file in
notepad and readjust the tags to become one on the same line then the xml
file is loaded correctly...
This is the output of the generated XML on IE6.0.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
Whitespace is not allowed at this location. Error processing resource
'file:///Z:/ora81/bin/EMPS.xml'. Line 36, Position 8


when I open the file in Notepad to view the source i get this See fragments
in records 4 & 8)
<?xml version = '1.0'?>
<mappings Record="1">
<mappings Record="2">
<mappings Record="3">
<mappings Record="4">
<mappings Record="5">
<mappings Record="6">
<mappings Record="7">
<mappings Reco
<mappings Record="9">
<HIREDATE>1/21/2001 0:0:0</HIREDATE>
<mappings Record="10">
<mappings Record="11">
when i fix the fragments in records 4 and 8 and refresh the page the output
is displayed correctly...
Besides i am using XML SQL utility (XSU) to generate an XML document from
inside of the Oracle environment...
Does anyone know the solution?
Thanks for your help...
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the easiest way to do it is to put a filter, or something like that, on the outputstream.
I believe a trim (or a replace('\n',''), I believe) should do the trick very easy.
Indeed, this is not too good in terms performance, so u should look at that oracle tool of yours. JAD decompiler might be the best ideea, if that tool is not too big ???
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic