Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Validating an XML String
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Barry White, post: 559975"] I haven't got the SAX api docs in front of me but I'd be suprised if it restricts you to only files and not something more abstract like an InputStream. If that's the case you could try a StringBufferInputStream or ByteArrayInputStream. Byte array might be better as you could specify the encoding as follows (encoding will be important for an xml parser): String xmlString = ....; ByteArrayInputStream in = new ByteArrayInputStream(xmlString.getBytes("iso-8859-1")); ...create SAX parser with specified encoding. Barry [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Validating an XML String
Top