How to read an XML file with an undefined namespace with XMLReader?

woox13

New Member
I'm relatively new to parsing XML files and am attempting to read a large XML file with XMLReader. \[code\]<?xml version="1.0" encoding="UTF-8"?><ShowVehicleRemarketing environment="Production" lang="en-CA" release="8.1-Lite" xsi:schemaLocation="http://www.starstandards.org/STAR /STAR/Rev4.2.4/BODs/Standalone/ShowVehicleRemarketing.xsd"> <ApplicationArea> <Sender> <Component>Component</Component> <Task>Task</Task> <ReferenceId>w5/cron</ReferenceId> <CreatorNameCode>CreatorNameCode</CreatorNameCode> <SenderNameCode>SenderNameCode</SenderNameCode> <SenderURI>http://www.example.com</SenderURI> <Language>en-CA</Language> <ServiceId>ServiceId</ServiceId> </Sender> <CreationDateTime>CreationDateTime</CreationDateTime> <Destination> <DestinationNameCode>example</DestinationNameCode> </Destination> </ApplicationArea>...\[/code\]I am recieving the following error\[quote\] ErrorException [ Warning ]: XMLReader::read() [xmlreader.read]: compress.zlib://D:/WebDev/example/local/public/../upload/example.xml.gz:2: namespace error : Namespace prefix xsi for schemaLocation on ShowVehicleRemarketing is not defined\[/quote\]I've searched around and can't find much useful information on using XMLReader to read XML files with namespaces -- How would I go about defining a namespace, if that is in fact what I need to do.. little help? links to pertinent resources?
 
Back
Top