On 29/11/2011, Sergei Gorelkin <[email protected]> wrote:
> To add to this, the core DOM is simply not supposed to do things like path
> navigation.

OK, then lets simplify the problem and remove the usage of a "node
path". Can you solve to original problem using FPC DOM, but doing it
one node retrieval at a time. eg:

   xmdoc := TXMLDoc.loadfromfile('the package.lpk')'
   configenode := xmldoc.<something here>'
   packagenode := confignode.<something here>
   versionnode := packagenode.<something here>
   major_value := versionnode.<something here>


If the FPC DOM is so per W3C spec, surely the W3C spec covers retrieve
of  simple node somewhere in the XML file? I would just like to know
how - so I can LEARN something today.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to