954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading stream with two xml files in

I'm trying to read a xml file which contains two xml files in one file with java from a specific directory and then writing a response file with also two xml into one file which contains variables from the read xml file. XML Parser gives me an error "The processing instruction target matching "[xX][mM][lL]" is not allowed." so now I want to use FileInputStream and FileOutputStream to do this, but is strugling with the code.
Please if anybody can help.
Thanks

Progmet
Newbie Poster
1 post since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

Which XML Parser are you using? Please post a code snip.

I'm trying to read a xml file which contains two xml files in one file with java from a specific directory and then writing a response file with also two xml into one file which contains variables from the read xml file. XML Parser gives me an error "The processing instruction target matching "[xX][mM][lL]" is not allowed." so now I want to use FileInputStream and FileOutputStream to do this, but is strugling with the code. Please if anybody can help. Thanks
cosi
Junior Poster
153 posts since Aug 2004
Reputation Points: 17
Solved Threads: 1
 
Which XML Parser are you using? Please post a code snip.


hi,I meeted the same problem,but I had soluted it。
the xml file is follow when a exception had throwed out like "The processing instruction target matching "[xX][mM][lL]"
cc_getuserfunc1385630011666107984892731001920010049998911200504201734321310121301000100
<?xml version="1.0" encoding="GBK"?>
<request type="struct">
<home_city type="int" />
<msisdn type="string">13501550001</msisdn>
<password type="string" />
</request>
]

the right xml is
cc_getuserfunc1385630011666107984892731001920010049998911200504201734321310121301000100<?xml version="1.0" encoding="GBK"?>
<request type="struct">
<home_city type="int" />
<msisdn type="string">13501550001</msisdn>
<password type="string" />
</request>]

the reason for the exception, had been throwed out is
there is new line symbol before the characters "]]>" and after the characters "

lixf
Newbie Poster
1 post since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You