Zdravím, mám pocit, že XML vyžaduje, aby po <?xml version="1.0" encoding="iso-8859-1"?> byl vždy zalomený řádek.
Petr Radovana Straube píše v Út 13. 03. 2007 v 03:02 -0700: > Dobry den, > > na parsovanie XML suborov pouzivam nasledovny kod: > DocumentBuilderFactory oFactory = > DocumentBuilderFactory.newInstance(); > oFactory.setIgnoringElementContentWhitespace(true); > oFactory.setIgnoringComments(true); > DocumentBuilder oParser = > oFactory.newDocumentBuilder(); > ByteArrayInputStream oInputStream = new > ByteArrayInputStream(sFullXML.getBytes()); > Document oDoc = oParser.parse(oInputStream); > > Ked XML subor obsahuje odriadkovanie > (datml02-norm.xml), parsovanie prebehne bez problemov, > ale ak je cely XML subor iba jeden riadok > (datml02-flat.xml), tak dostanem nasledovnu exception: > > org.xml.sax.SAXParseException: The element type > "DatML-RAW-D" must be terminated by the matching > end-tag "</DatML-RAW-D>". > at org.apache.xerces.parsers.DOMParser.parse(Unknown > Source) > at > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown > Source) > at javax.xml.parsers.DocumentBuilder.parse(Unknown > Source) > .... > > Ma niekto prosim predstavu ako tento problem riesit? > > Dakujem > Radovana Straube > > > > ____________________________________________________________________________________ > Sucker-punch spam with award-winning protection. > Try the free Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/features_spam.html -- Petr Ferschmann SoftEU s.r.o. ----------------------------------- Bolevecká 6 301 00 Plzen Czech Republic ----------------------------------- Phone: +420 373 731 284 +420 373 729 300 Fax: +420 373 729 301 Cell: +420 775 638 008 E-mail: [EMAIL PROTECTED]
