Re: Usage of XPath

"Gilles Micas Knudsen" <gillesmicas-/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
Hello Colin!
Thank you for the reply. I need to learn CVS then.

Yes, it is not a trivial project, but is very interesting. The main 
purpose is to learn Eiffel (and GOBO) and design using eiffelstudio.

The current version is not optimized: 
 
  -- an XML file is open (after browsing the disk)
     * <cases>
         <product> ...
         <product> ...
             ...
         <product> ...

         <customer> ...
         <customer> ...
             ...
         <customer> ...

         <case customer="xxx1" product="yyyy1">
         <case customer="xxx2" product="yyyy2">
             ...
         <case customer="xxxn" product="yyyyn">
       <cases>

  -- it is then parsed
  -- the document of the resulting tree pipe is then copied one
     element at a time into a cache class representing a new XML
     document which contain a copy of the tree-pipe structure
     and lists of pointers to each class beneath the root for 
     browsing convenience.
     * if the structure is corrupt, then it is reestablished wiht
       default elements on the fly.
     *'rescue' is used here to try the exceptions mechanism.
  -- elements can then be removed, modified, added etc in the cache

  -- and just for fun I wanted to use XPATH in this toy program
     the same way it is used in an xsl file.

--- In [email protected], Colin Paul Adams <colin@...> 
wrote:
>
> >>>>> "Gilles" == Gilles Micas Knudsen <gillesmicas@...> writes:
> 
>     Gilles> Thank you both for replying my request.  I just use the
>     Gilles> latest version of Eiffel Studio, and thus the embedded
>     Gilles> GOBO library.
> 
> If you are looking to use XPath, it is always best to use the very
> latest code in CVS, as I am continually fixing bugs.
> 
>     Gilles> I have a 'little' project: I would like to create, 
modify
>     Gilles> etc XML files from Eiffel, and I am struggling with 
XPATH
>     Gilles> for the moment.
> 
> You can't modify XML files using the Gobo XPath implementation - at
> least, you can't with the 2 current tree implementations.
> 
> It would be possible to build a virtual XDM tree over XM_DOCUMENT, 
and
> you could then perform modifications via the virtual layer, but 
that
> would be a non-trivial project.
> 
> What are you trying to accomplish with XPath?
> -- 
> Colin Adams
> Preston Lancashire
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.