Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8302079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:11:45+00:00 2026-06-08T17:11:45+00:00

i have this XML document: <?xml version=1.0 encoding=UTF-16?> <root> <items> <item1> <tag1>1</tag1> <tag2>2</tag2> <tag3>3</tag3>

  • 0

i have this XML document:

<?xml version="1.0" encoding="UTF-16"?>

<root>
<items>
    <item1>
    <tag1>1</tag1>
    <tag2>2</tag2>  
    <tag3>3</tag3>
    </item1>

    <item2>
    <tag1>4</tag1>
    <tag2>5</tag2>  
    <tag3>6</tag3>
    </item2>
</items>
</root>

I want to iterate the item elements (item1, item2…), and for each tag get the tag name and after that the value of the tag.

I am using DOM parser.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:11:47+00:00Added an answer on June 8, 2026 at 5:11 pm

    Sorry, but this ain’t an unsolvable or complicated problem, this is simply reading a tutorial which can be googled within seconds.

    And of course, you might also check the documentation, which will give you a hint about this handy method called “getNodeName()”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an xml document like this: <?xml version=1.0 encoding=UTF-8?> <foo:root xmlns:foo=http://abc.com# xmlns:bar=http://def.com xmlns:ex=http://ex.com>
So I have this XML doc: <?xml version=1.0 encoding=UTF-8?> <Root> <Item> <URL>http://www.mysite.com/page?id=1</URL> </Item> </Root>
Using this source document: <?xml version=1.0 encoding=UTF-8?> <Root> <Element1 id=UniqueId1> <SubElement1/> <SubElement2> <LeafElement1/> <LeafElement1/>
I have an xml document: <?xml version=1.0 encoding=utf-8?> <Root> <Child name=MyType compareMode=EQ></Child> </Root> And
I have 50000 XML records like this in the database: <?xml version=1.0 encoding=UTF-8?> <root>
I have an XML document with a basic structure like this: <?xml version=1.0 encoding=UTF-8
I have something like this (sorry for the bad names) <?xml version=1.0 encoding=utf-8 ?>
I have an loaded an XML document with the following structure: <?xml version=1.0 encoding=UTF-8
I have the following XML document <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' xmlns:issues='http://schemas.google.com/projecthosting/issues/2009' gd:etag='W/DEAERH47eCl7ImA9WhZTFEQ.'><id>http://code.google.com/feeds/issues/p/chromium/issues/full/921</id><published>2008-09-03T22:51:22.000Z</published><updated>2011-03-19T01:05:05.000Z</updated><title>Incorrect rendering</title><content
I have only this in my mxml source code: <?xml version=1.0 encoding=utf-8?> <mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.