Jump to content

Search the Community

Showing results for tags 'xmldomwrapper xml namespace'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi All, I'm trying to process a XML file using the _XMLDOMWrapper UDF which worked very well for me so far. Unfortunately I am struggling with a different XML format now. I don't seem to be able to access any nodes after the root node unless I simplify the root node (what I'd like to avoid). Here's the XML format: <Systems Version="3.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-fujitsu-siemens-com:software-preload" xsi:noNamespaceSchemaLocation="HWInfo3.00.xsd"> <System> <SystemIdentification> <SerialNumber>12345XYZ</SerialNumber> <IndividualSoftwareID /> <SystemUUID>{12345XYZ-1234-5678-9123-12345XYZ}</SystemUUID> <CustomerSerialNumber /> <IMEINumber /> <MACAddresses> <MACAddress type="OnBoard">00:12:34:56:78:90</MACAddress> </MACAddresses> </SystemIdentification> <SoftwareModules /> <DeliveryNote> <OrderCode>CUZ:12345XYZ-ABC</OrderCode> <CustomerOrderData>12345XYZ</CustomerOrderData> <EndCustomerOrderNumber>12345XYZ</EndCustomerOrderNumber> <Product>Celsius M470-2</Product> <OrderPosition>123</OrderPosition> <OrderNumber>12345XYZ</OrderNumber> </DeliveryNote> </System> </Systems> AU3 Test: #include <Array.au3> #include <_XMLDomWrapper.au3> Local $inputFile = FileOpenDialog("Select XML", @ScriptDir, "XML (*.xml)", 1) If FileExists($inputFile) Then _XMLFileOpen($inputFile, 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-fujitsu-siemens-com:software-preload" xsi:noNamespaceSchemaLocation="HWInfo3.00.xsd"') If Not @error Then $aTemp = _XMLGetChildNodes("/Systems") _ArrayDisplay($aTemp) Else MsgBox(0,"Error","Error opening File: " & @error) EndIf EndIf I'm pretty sure my error is in the _XMLFileOpen parameter for the namespace. Unfortunately I don't any experience with XML namespaces and their usage. Any help is much appreciated! Thanks!
×
×
  • Create New...