Adding a global redefinable separator character is a good idea which I might add. With regards to using the forward slash, I am just reusing the XPath way of doing things and was considering adding a few more XPath like queries. For example:
N.Find('/inventory/999/sku'); // search from root if the first path character is '/', find the 999th node, return the sku N.Find('//item[name="widget"]/price'); // search for the first item in the entire document ('//') with a name of widget, return its price N.Find('//item[recalled]/name'); // search for the first item with a recalled node and return the name And so on ...
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal