OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   StAX XMLStreamWriter Oddities

[ Lists Home | Date Index | Thread Index ]

Overall, I like the design of the final StAX API but I found these oddities
which I don't understand and hope someone could provide a clue:

In particular some XMLStreamWriter methods are overloaded with inconsistent
scrambled parameter orders like this:

  writeStartElement(String localName)
  writeStartElement(String namespaceURI,
	String localName)
  writeStartElement(String prefix,
	String localName,
	String namespaceURI)

  writeEmptyElement(String localName)
  writeEmptyElement(String namespaceURI,
	String localName)
  writeEmptyElement(String prefix,
	String localName,
	String namespaceURI)

  writeAttribute(String localName, String value)
  writeAttribute(String namespaceURI,
	String localName,
	String value) 
  writeAttribute(String prefix,
	String namespaceURI,
	String localName,
	String value)

Is there some mysterious design pattern at work here?

Also, I noticed that there is a patent filed on StAX by the StAX spec lead:



Don Park


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS