Jump to content

Sakunne

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

About Sakunne

  • Birthday 11/20/1954

Profile Information

  • Gender
    Male
  • Location
    Estonia

Sakunne's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Actually, I made it like this: $xml = new SimpleXMLElement('full_availability.xml', null, true); $Result = $xml->xpath('//Line[ExtProdGroup="0204" and Availability != 0 ]');
  2. Thanks! Can I do the same thing with 'SimpleXML' and 'xpath'
  3. I need to parse XML and this article helped me a lot: http://www.phpfreaks.com/tutorial/handling-xml-data The next thing I need is to parse only elements that meet certain conditions, lets say we have an XML with structure like this: <Result> <Line> <StockCode>0101009</StockCode> <Description>Description</Description> <ProductGroup>S01</ProductGroup> <Availability>0</Availability> </Line> ... </Result> I need to parse only the elements with ProductGroup = S01 and Availability = 1 How can I do that :-\
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.