Re: [PHP] XML to Array

2013-03-12 Thread Bastien
Bastien Koert On 2013-03-11, at 10:50 PM, Karl DeSaulniers wrote: > > On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: > >> On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers >> wrote: >>> >>> On Mar 10, 2013, at 6:03 AM, richard gray wrote: >>> On 10/03/2013 11:47, Karl DeSaulniers

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers > wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost i

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers > wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost i

Re: [PHP] XML to Array

2013-03-11 Thread Bastien Koert
On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers wrote: > > On Mar 10, 2013, at 6:03 AM, richard gray wrote: > >> On 10/03/2013 11:47, Karl DeSaulniers wrote: >>> >>> Hi Guys, >>> I am hoping someone can guide me or help me fix this issue. >>> I have been lost in the code for some time now. >>> I

Re: [PHP] XML to Array

2013-03-10 Thread Karl DeSaulniers
On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this ma

Re: [PHP] XML to Array

2013-03-10 Thread richard gray
On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this may help -> http://stackoverflow.com/questions/1156957

Re: [PHP] xml to array

2006-02-05 Thread Brian V Bonini
On Sun, 2006-02-05 at 06:32, Tod Thomas wrote: > Just a quick shot it the dark... > > http://www.w3.org/TR/REC-xml/#NT-Name > > Go up about a half page to this: > > "[Definition: A Name is a token beginning with a letter or one of a few > punctuation characters, and continuing with letters, dig

Re: [PHP] xml to array

2006-02-05 Thread Tod Thomas
Brian V Bonini wrote: On Fri, 2006-02-03 at 16:23, Richard Lynch wrote: I've got my money on the XML spec REQUIRING an alphabetic start to tagnames, and subsequent characters can be alphanumeric... In other words, it doesn't work because <0> is not a valid XML tag. Yeah, that was my instin

Re: [PHP] xml to array

2006-02-04 Thread Brian V Bonini
On Fri, 2006-02-03 at 16:23, Richard Lynch wrote: > I've got my money on the XML spec REQUIRING an alphabetic start to > tagnames, and subsequent characters can be alphanumeric... > > In other words, it doesn't work because <0> is not a valid XML tag. Yeah, that was my instinct too... Just could

Re: [PHP] xml to array

2006-02-03 Thread Richard Lynch
I've got my money on the XML spec REQUIRING an alphabetic start to tagnames, and subsequent characters can be alphanumeric... In other words, it doesn't work because <0> is not a valid XML tag. You'll have to find and read the XML spec to be 100% certain. http://info.com/XML+specification If I'm

[PHP] xml to array

2006-02-03 Thread Brian V Bonini
Joe Shmoe foo bar <0>DNR <1>OPT <2>FOO <3>BAR <4>CWS <5>AVS 72 96Kg 0 etc... $xml_data = $xml; $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 0); xml_parse_into_struct($parser, $xml_data,

[PHP] XML to ARRAY

2002-06-01 Thread Christopher J. Crane
Here is a piece of code, that is close to doing what I want it to. The end result I would like to have is an array that is simple to work with. If the XML tag was RED HAT, I would like something like the following: $Tags['issue-name']. So I could print it out. Something like, print "$Tags['issue-

Re: [PHP] 'XML To Array' Class (Array Problem)

2001-04-23 Thread [EMAIL PROTECTED]
I think it's important to mention that my problem is not with XML, but with my use of arrays. I have tested the variable content that comes back with XML and the data is coming through. My problem is I am not doing something right to make the data into an array... > heey, > > i'm currentl

Re: [PHP] 'XML To Array' Class

2001-04-23 Thread Serge Vleugels
heey, i'm currently facing the same problem as you. i was thinking of using either xml_parse_into_struct or using a class i found phpxml.class at http://www.phpxml.org let me know how you did it, i'm very intrested Serge "Zeddicus Zu'l Zorandre" Vleugels -- freedom is the wizard's only choice

[PHP] 'XML To Array' Class

2001-04-23 Thread [EMAIL PROTECTED]
Hello, I'm new to using XML with PHP, but I think I've got it figured out for the most part. I have created a class that reads in an XML file and returns the data it finds to an array, but I'm running into a problem because the array keeps coming back empty. Would you mind taking a moment t