DaniWeb Programming
and Web Development Community
Loading
Home
Recent Posts
Revenue Sharing
Register
Contact Us
Login
Username
Password
Forgot your password?
|
Register
Welcome to TechnicalTalk.Net forum!
It seems that you are not a member yet. To interact with other members and to post on the forum.
Get a free account now
Earn money on this forum
Advertise with us...
TechnicalTalk
»
Programming and Web Development
»
PHP
»
Query on XML document
Quick Links:
Want to earn money on forum? visit -->
Earn money on forum
Add to Reputation:
Reputation
What do you think of this post?
I agree
I disagree
Comment:
Pages: [
1
]
Go Down
Email this topic
|
Print
0 Members and 1 Guest are viewing this topic.
Query on XML document
amber.long83
Reputation Power: 1
New Poster
Posts: 11
Topics: 8
Query on XML document
June 20, 2009, 02:00:32 AM
Hi friends
I am working with PHP5 and have a requirement to select xml node on the base of parameter. My xml contains the list of country and it has child node of state list. Like this
<?xml version="1.0" encoding="utf-8"?>
<country_list>
<country id="US">
<state>NY</state>
<state>CA</state>
<state>NJ</state>
</country>
<country id="AU">
<state>New South Wales</state>
<state>Victoria</state>
<state>Queensland</state>
</country>
</country_list>
I want to get the xml like
<country id="AU">
<state>New South Wales</state>
<state>Victoria</state>
<state>Queensland</state>
</country>
polas
Reputation Power: 17
Code Guru
Gender:
Posts: 1403
Topics: 86
Re: Query on XML document
June 29, 2009, 08:23:48 AM
The manual on this page will answer your question
www.php.net
Mesham Type Oriented Parallel Programming Language
,
Free online technical support
Eilt Druin
Reputation Power: 1
New Coder
Gender:
Posts: 39
Topics: 0
Re: Query on XML document
August 15, 2009, 07:07:28 PM
I would more specifically recommend using
SimpleXML
for this. Read up in the manual section on that; it'll be the easiest to use for this.
Phantasy Star: Fringes of Algo
|
Castle Nintendo - Discussion Community
amber.long83
Reputation Power: 1
New Poster
Posts: 11
Topics: 8
Re: Query on XML document
November 02, 2009, 05:58:59 AM
thanks
Email this topic
|
Print
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
Technical Resources - Articles and Videos
-----------------------------
=> Read/Post Free Articles
===> SEO and Marketing
===> Graphics and Design
===> Operating Systems
===> Programming
===> Gadget and Product Review
=> Video Tutorials
-----------------------------
Programming and Web Development
-----------------------------
=> C/C++
=> Visual Basic 6.0
=> Classic ASP 3.0
=> .NET
=> PHP
=> JAVA
=> Python
=> JavaScript and VBScript - Scripting Languages
=> Web Security
=> Other programming languages
=> Database Programming Discussions
===> Microsoft SQL Server
===> My SQL
-----------------------------
Graphics and Web Design
-----------------------------
=> HTML/XHTML/DHTML & CSS
=> Photoshop and Flash
=> General Web Design
=> Review your website or blog
-----------------------------
Operating Systems
-----------------------------
=> Windows
=> Linux and Unix
=> General - Operating System Discussion
-----------------------------
SEO and Marketing Success Strategy
-----------------------------
=> Search Engines
===> Google
===> Yahoo
===> Microsoft Bing
=> SEO - Search Engine Optimization
===> Web Directories
===> Link Development
=> Internet Marketing and Advertising
===> Affiliate Programs
===> Generating Revenue
===> Increasing Traffic
=> General Marketing Discussion
=> Promote Your Service
-----------------------------
Web Hosting and Hosting Management
-----------------------------
=> Web Hosting Talk
=> Web Hosting offers and plans
-----------------------------
Miscellaneous
-----------------------------
=> Blogging - Blogger's Paradise
=> Social Networks
=> Tips and Tricks
=> Chit Chat - Non Programming
-----------------------------
Forum Information
-----------------------------
=> Introduce Yourself
=> Suggestions and Feedback
=> Forum Rules/Guidelines/News/Announcements
=> Forum Support
=> Forum Games and Contests
===> Games
Home
|
Advertise
|
Forum Help
|
Privacy Policy
|
Contact us
Powered by SMF 1.1.16
|
SMF © 2011, Simple Machines
Google visited last this page May 03, 2012, 09:13:54 AM
Loading...