omnixml

How to delete a child node using OmniXML?

非 Y 不嫁゛ 提交于 2020-01-15 05:19:04
问题 I'd like to delete the line with pathid="2" in the rowpath section... <?xml version="1.0" encoding="utf-8"?> <LostPath Condition="Active" Selected="train.exe" FullPathOfSelected="D:\mygames\arcade\train\" Selected="0"> <rowdir Name="train.exe" GamePath="D:\mygames\arcade\train\" Selected="0" /> <rowdir Name="othelo.exe" GamePath="D:\mygames\arcade\othello\" Selected="3"/> <rowpath Name="train.exe" PathId="1" LevelPath="D:\mygames\arcade\train\levelpack1" levelsFound="27" /> <rowpath Name=

How to insert xml prolog using SimpleStorage to generate gpx file?

安稳与你 提交于 2019-12-12 13:56:06
问题 I plan to adopt once and for all handy a tool for handling the creation of gpx files. I believe SimpleStorage which is a OmniXML based storage suited for easy XML data management, data storage and data interchange beetween systems fits it. Here is an (incomplete) snippet to generate a bare bone gpx file that way : function CreateGpx: ISimpleStorage; const versionStr = '1.1'; creatorStr = 'MyGpxCreatorSSway'; xmlnsStr = 'http://www.topografix.com/GPX/1/1'; xmlns_xsiStr = 'http://www.w3.org

Delphi XE & OmniXML: Using SelectNode()?

断了今生、忘了曾经 提交于 2019-12-12 10:07:34
问题 I've got the following XML snippet as part of a larger XML file that I'm processing using the latest OmniXML snapshot: <OrderRequestHeader> <!-- snipped XML bits here --> <ShipTo> <Address addressID=""> <Name xml:lang="en">SOME COMPANY</Name> <PostalAddress name="default"> <DeliverTo>John Doe</DeliverTo> <Street>123 Any St</Street> <City>Nowhere</City> <State>AK</State> <PostalCode>99999</PostalCode> <Country isoCountryCode="US">United States</Country> </PostalAddress> <Email/> <Phone>

How to create simple XML in OmniXML

北战南征 提交于 2019-12-09 13:47:57
问题 i want to create this structure xml <root ver="" file=""> <row> <id></id> <name></name> <surname></surname> <time></time> <old></old> <subject></subject> </row> </root> when i do the main structure i get the data from online database and i want to add it in my xml file how can i create the main structure how can i add a new Row in every update the database made how can i sort the xml, base of the name node Please help Thank you 回答1: You can use create inherited classes which define your xml