txmldocument

XML parsing, TXMLDocument

放肆的年华 提交于 2019-11-27 18:37:48
I have a problem with parsing XML. How to get field values se_url and phrase ? I need to get link1_1 , link1_2 , key1 , link2_1 , link2_2 , key2 ... which are in se_url and phrase . I did not find in Google how to do it (also did not find a manual on how to work with TXMLDocument ). <doc> <date2>20120214</date2> <date1>20120214</date1> <data count="116"> <row> <search_engines count="2"> <search_engine> <se_url>link1_1</se_url> <se_page>1</se_page> <se_id>2</se_id> </search_engine> <search_engine> <se_url>link1_2</se_url> <se_page>1</se_page> <se_id>3</se_id> </search_engine> </search_engines>

XPath and TXmlDocument

妖精的绣舞 提交于 2019-11-27 13:37:44
In Delphi XE is it possible to use XPath with a TXmlDocument component? I'm aware I can use late binding to access the MSXML2 and then use XPath: XML := CreateOleObject('MSXML2.DOMDocument.3.0') ; XML.async := false; XML.SetProperty('SelectionLanguage','XPath'); But I wanna know if TXmlDocument installed with Delphi XE supports XPath. Ken White I can't find anything in the TXMLDocument documentation about XPath. XML example, from the OmniXML XPath demo: <?xml version="1.0" encoding="UTF-8"?> <bookstore> <book> <title lang="eng">Harry Potter</title> </book> <book> <title lang="eng">Learning XML

XML parsing, TXMLDocument

让人想犯罪 __ 提交于 2019-11-26 19:31:44
问题 I have a problem with parsing XML. How to get field values se_url and phrase ? I need to get link1_1 , link1_2 , key1 , link2_1 , link2_2 , key2 ... which are in se_url and phrase . I did not find in Google how to do it (also did not find a manual on how to work with TXMLDocument ). <doc> <date2>20120214</date2> <date1>20120214</date1> <data count="116"> <row> <search_engines count="2"> <search_engine> <se_url>link1_1</se_url> <se_page>1</se_page> <se_id>2</se_id> </search_engine> <search

XPath and TXmlDocument

浪子不回头ぞ 提交于 2019-11-26 16:34:19
问题 In Delphi XE is it possible to use XPath with a TXmlDocument component? I'm aware I can use late binding to access the MSXML2 and then use XPath: XML := CreateOleObject('MSXML2.DOMDocument.3.0') ; XML.async := false; XML.SetProperty('SelectionLanguage','XPath'); But I wanna know if TXmlDocument installed with Delphi XE supports XPath. 回答1: I can't find anything in the TXMLDocument documentation about XPath. XML example, from the OmniXML XPath demo: <?xml version="1.0" encoding="UTF-8"?>