[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem parsing XML file with Xerces-J

  • To: Michael Kay <mike@s...>, 'Midsummer Sun' <midsummer.sun@g...>, 'David Lyon' <david.lyon@c...>
  • Subject: RE: Problem parsing XML file with Xerces-J
  • From: Mukul Gandhi <mukul_gandhi@y...>
  • Date: Tue, 5 Apr 2005 05:28:07 -0700 (PDT)
  • Cc: xml-dev@l...
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Dm7ZNz7qdYJzmNrIFGtSY+nb8+Zq5m/+e77679V+iNYCsF+4+Bv67ygU7OP0WUg3cvei4eEJiBUQf1Kxqhx6Bj3GCyfyf0lURKU2/cuUJc5iGYGBsccoNPB1lLj4bQQgFbOEH0l/ANkkZtMiZLWDeMYHb0l6m8wthpVA24Q2IF0= ;
  • In-reply-to: 6667

xerces stax
Hello,
  The API docs on "Sun Java Streaming XML Parser"
page: 
http://java.sun.com/webservices/docs/1.5/api/javax/xml/stream/XMLStreamReader.html

clearly mentions about this method -
java.lang.String getAttributeValue(java.lang.String
namespaceURI, java.lang.String localName) 
Returns the normalized attribute value of the
attribute with the namespace and localName If the
namespaceURI is null the namespace is not checked for
equality 

So namespaceURI is optional, as I wished. Sorry I
did'nt check the Sun's site..

But the "JSR 173" pdf downloadable from -
http://jcp.org/aboutJava/communityprocess/final/jsr173/index.html

mentions just following sentence about this method:

String getAttributeValue(String namespaceUri,String
localName);

There is no clarification in JSR pdf, that
namespaceUri argument is optional (I think it is
assumed to be understood!). 

So my question is answered I guess.. 

Regards,
Mukul

--- Mukul Gandhi <mukul_gandhi@y...> wrote:
> Hello,
>   I sent this comment to jsr-173-comments@j...
> few
> days back..
> 
> "JSR 173 is indeed good. I have *one* suggestion..
> (reference file: jsr173_1.0.pdf)
> 
>    I was reading the JSR 173 (Streaming API for
> XML)..
> In section "5.1.2 Reading Attributes and Namespaces"
> various methods for getting attribute information
> are
> listed. One of the method is String
> getAttributeValue(String namespaceUri,String
> localName); It seems *we must* supply the namespace
> URI to this method to get the attribute value. 
> 
> But sometimes the XML document does'nt have
> namespaces. So in the above method, the namespaceUri
> argument must be optional.. 
> "
> 
> I have not recieved any response so far (JSR people
> are surely busy people!).. Is this a valid point or
> I
> am wrong?
> 
> Regards,
> Mukul
> 
> --- Michael Kay <mike@s...> wrote:
> > > Can the new StAX streaming parser provide a
> > performance boost to my
> > > application! In this case, my application will
> > pull events from the
> > > XML (in a serial fashion). This will give me
> same
> > performance as SAX.
> > > I cannot use SAX, because there is no way to
> push
> > events to my
> > > application. DOM is surely slow ! I think StAX
> is
> > still an emerging
> > > technology, and the drivers are not as robust as
> > today's SAX parsers.
> > 
> > Yes, I have been very disappointed by the
> > reliability of the StAX parsers
> > from BEA and Sun, and by the fact that they don't
> > seem to be moving forward
> > aggressively.
> > 
> > Michael Kay
> > http://www.saxonica.com/
> > 
> > 
> > 
> >
>
-----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org
> > <http://www.xml.org>, an
> > initiative of OASIS <http://www.oasis-open.org>
> > 
> > The list archives are at
> > http://lists.xml.org/archives/xml-dev/
> > 
> > To subscribe or unsubscribe from this list use the
> > subscription
> > manager:
> > <http://www.oasis-open.org/mlmanage/index.php>
> > 
> > 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Personals - Better first dates. More second
> dates. 
> http://personals.yahoo.com
> 
> 
>
-----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org
> <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at
> http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the
> subscription
> manager:
> <http://www.oasis-open.org/mlmanage/index.php>
> 
> 


		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.