• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing attributes of XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing attributes of XML


  • Subject: Re: Accessing attributes of XML
  • From: "Christian Graus" <email@hidden>
  • Date: Tue, 6 May 2008 09:07:36 +1000

On Tue, May 6, 2008 at 9:00 AM, David Wilson <email@hidden>
wrote:

> On Mon, May 5, 2008 at 6:36 PM, Christian Graus
> <email@hidden> wrote:
> >  Yeah, that's where I found the docs.  IMHO it's a real shame that a
> proper
> >  DOM implimentation is not available as standard.  I am familiar with
> XQuery,
> >  but I've never known anyone to use it, perhaps it's used more on Mac ?
> I'm
> >  just surprised to see Microsoft adhering to standards and Apple not
> doing
> >  so.
>
> Just to interject here, XPath/XQuery is, in fact, a standard:
> http://www.w3.org/TR/xpath



Hi David.  Yes, XPath and XQuery are two standards, I was referring to the
DOM, which, like SAX, is also a standard.


> <http://www.w3.org/TR/xpath>
>
> I'd imagine that the reason a DOM-style API is restricted to WebKit is
> that XPath/XQuery are intended to be generic XML access methods (and
> that's what they provide) where DOM is much more closely tied to web
> pages.
>


OK - I guess that may be the case in the Mac world, I can't argue with
that.  It is true that the DOM is very useful and often used within website
code.  However, I've used XML for many, many years in the Windows world,
across many languages, and my knowledge of the DOM has always followed me
and always been applicable.



>
> I had to pick up the XPath stuff recently for a project I was working
> on, and I've got to say that once you get yourself thinking in that
> way, it's really very nice for inspecting XML files, giving you great,
> readable control for grabbing segments out of the document and then
> inspecting or manipulating them.


Yes, XPath is very nice and very powerful, once you get the hang of it.

I confess to having an XQuery book that i've never read, because XPath has
always worked, and I've never worked on a project where anyone else saw a
need for XQuery.

Christian
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Accessing attributes of XML (From: "Christian Graus" <email@hidden>)
 >Re: Accessing attributes of XML (From: Jens Alfke <email@hidden>)
 >Re: Accessing attributes of XML (From: "Christian Graus" <email@hidden>)
 >Re: Accessing attributes of XML (From: Jens Alfke <email@hidden>)
 >Re: Accessing attributes of XML (From: "Christian Graus" <email@hidden>)
 >Re: Accessing attributes of XML (From: "David Wilson" <email@hidden>)

  • Prev by Date: Re: I Never get 'self' in Obj-C
  • Next by Date: Re: Cannot remove an observer ... because it is not registered as an observer.
  • Previous by thread: Re: Accessing attributes of XML
  • Next by thread: Re: Updating NSTextView when it gets shorter [SOLVED]
  • Index(es):
    • Date
    • Thread