[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Control characters in node value
Michael Kay wrote: > > I am using IBM's XML4J parser. I need to parse certain XML that is of > > the following form. > > > > <?xml version="1.0"?> > > <A> > > <B>#java.sql.SQLException: > > oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java) > > </B> > > </A> > > > This isn't XML, so you can't parse it. An XML parser will throw an error > saying that the <init> start tag has no matching end tag. To fix this, whoever constructs the XML needs to use references to the lt and gt entities instead of the < and > characters. For example: <?xml version="1.0"?> <A> <B>#java.sql.SQLException: oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java) </B> </A> -- Ron
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|