chillyroll Posted November 30, 2006 Share Posted November 30, 2006 Hello guys, I am looking for a parser in PHP that can return all the attributes of XML entities. I know how to read the XML Entities, but I have got a problem with reading attributes. So I will appreciate if you could give a parser that can return all the Entities and Attributes of respective entities as an array.For e.g.:<?xml version="1.0" ?> <Controller> <NumberOfBoards>5</NumberOfBoards> <NumberOfKeypads>1</NumberOfKeypads> <QueueMode>N</QueueMode> <EntranceDelay on="5" off="5" /> <Limits minLength="36" maxLength="800" /> <Conveyor perSecond="6.3" perPulse="8.0" /> <Roller relay="1" needsOrder="1"> <RollerUp1>84</RollerUp1> <RollerDown>84</RollerDown> <RollerUp2>84</RollerUp2> </Roller></Controller>This is a part of my XML document. I want to return all the Entites with their attributes as an array.Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/28950-need-parser-that-can-read-attributes-of-xml-document/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.