XML support in Java 5?



The javax.xml and javax.xml.stream packages have some classes that look very useful for writing and reading XML (the latter package especially). Unfortunately, as near as I can tell they are for the most part only supported in Java 6 and later. The few things that are documented as being in Java 5, I don't see how they are useful for actually writing XML.

The XMLStreamWriter and XMLStreamReader classes are the ones in particular that I'd find useful. But I need something that doesn't require Java 6.

I can write a simple implementation myself for my own purposes. What I'm writing isn't very complicated and I can get by without a full-fledged XML-compliant class. But I'd just as soon use a built-in class if there is one.

I've searched the Sun docs every way that I can think of, but the only thing that turns up each time are the Java 6 classes. The closest thing I could find is a writer in the SQL package, but it doesn't seem appropriate for my use (there's no database involved here).

Is there any simple XML support in Java 5? If so, can you please point me to the appropriate class name or documentation page?

Thanks!
Pete
.



Relevant Pages

  • Re: XML support in Java 5?
    ... very useful for writing and reading XML (the latter package especially). ... The few things that are documented as being in Java 5, I don't see how they are useful for actually writing XML. ...
    (comp.lang.java.programmer)
  • Re: XML support in Java 5?
    ... look very useful for writing and reading XML (the latter package especially). ... The few things that are documented as being in Java 5, I don't see how they are useful for actually writing XML. ...
    (comp.lang.java.programmer)
  • Re: Project reflection
    ... > How would you get package and class names given the project name as a ... There is no such concept as a "project" in Java. ... environments have such a concept, but it's only an organizational tool ... if you are writing plug-in tools for your development ...
    (comp.lang.java.developer)
  • Re: Project reflection
    ... > How would you get package and class names given the project name as a ... There is no such concept as a "project" in Java. ... environments have such a concept, but it's only an organizational tool ... if you are writing plug-in tools for your development ...
    (comp.lang.java.programmer)
  • Re: Project reflection
    ... > How would you get package and class names given the project name as a ... There is no such concept as a "project" in Java. ... environments have such a concept, but it's only an organizational tool ... if you are writing plug-in tools for your development ...
    (comp.lang.java.help)