---
title: "Hämta ut XML-element med Flash-objektet!"
type: "forum-thread"
url: "https://www.webforum.nu/amne/flash/81450-hämta-ut-xml-element-med-flash-objektet"
topic: "Flash"
topic_url: "https://www.webforum.nu/amne/flash"
author: "Poppe25"
published: "2003-07-06T20:20:26.000Z"
updated: "2003-07-17T06:45:28.000Z"
replies: 2
views: 192
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/flash/81450-hämta-ut-xml-element-med-flash-objektet"
---

# Hämta ut XML-element med Flash-objektet!

## #1 — Poppe25, 2003-07-06T20:20Z

Om jag har xmlobjekt som läst in:
 \<root\>
   \<xmltagg\> innehåll \</xmltagg\> 
 \</root\>

 Hur hämtar jag ut innehåll?

Permalänk: https://www.webforum.nu/p/81450

## #2 — DennisHolmboe, 2003-07-16T23:31Z

Hej! Detta hittade jag på  [www.xmlinflash.com](http://www.xmlinflash.com) under FAQ. Hoppas det hjälper lite iallafall!
/Dennis

This is a common problem for newbies. For example, say you have the following node: 

\<ournode\>here’s some text\</ournode\> 

You really have two nodes: one is \<ournode\> and the other is its child, a text node. Yes, that’s right. Text is stored in its own node. If ourNode.nodeName is ournode, then ourNode.firstChild.nodeValue is here’s some text. If you read that again carefully, you’ll notice that you get the value of text from a text node by using nodeValue, and you retrieve the name of an element node by using nodeName.

Permalänk: https://www.webforum.nu/p/1113524

## #3 — Poppe25, 2003-07-17T06:45Z

Dunder! Precis vad man behöver veta. Hade sett att man gjorde så precis, men nu vet jag också varför

Permalänk: https://www.webforum.nu/p/1113557

---

Tråden på webben: https://www.webforum.nu/amne/flash/81450-hämta-ut-xml-element-med-flash-objektet
