From: Anders Karlsson (pugo@cendio.se)
Date: Fri Feb 02 2001 - 06:54:22 EST
On Thu, 1 Feb 2001 hayward@slothmud.org wrote:
> I've already hacked together a sample program that loads/saves xml files
> based on the available documentation. I also figured out how to make use
> of the data read in by accessing the DOM tree directly. But I get this
> feeling that I should be using more of the API functions do do much of
> what I'm doing directly, and I haven't found a good place to get a good
> understanding of when I should and shouldn't use the API functions.
Well, some days ago I understood that I hade reinvented the wheel. I wrote
some code that traverses the DOM tree recursivelly and searches for
elements matching a specific path. The code works fine, but as you I had
the feeling that there must be a more standard way to do it. Then I found
the wheel, XPath.
XPath is a standard that makes it possible to reference objects in the
tree with advanced possibilities, in fact it's a language in itself,
making it possible to create advanced references.
I looked closer at XPath and realized that it seemed to be good, but I
also realized that in my case it would be like shooting ducks with
ballistic missiles, it was far too advanced and big for my use. I simply
didn't need anything more than what I already had implemented, so I still
use my own wheel.
Regards,
--------------------------------------------------------------------------
Anders Karlsson Email: anders.karlsson@cendio.se
Cendio Systems AB WWW: www.cendio.se
Teknikringen 3, Voice: +46 - (0)13 - 21 46 00
SE-583 30 LINKÖPING, SWEDEN Fax: +46 - (0)13 - 21 47 00
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Fri Feb 02 2001 - 08:43:31 EST