/    Sign up×
Community /Pin to ProfileBookmark

Hi all,

this is my first time posting, I have a bit of a problem. I am a begineer with Javascript and XML.

I am trying to write javascript code within a HTML file that will load and read an XML file, and then display the “child nodes”(?) on the HTML page by using the DOM API.

Below is the code I have written to load my XML file. What I’m wondering is does anyone know some good resources that could help me out here or have any suggestions themselves? Thanks.

<script type=”text/javascript” language=”JavaScript”>
<!–

var xmlDoc = new ActiveXObject(“Microsoft.XMLDOM”)
xmlDoc.async=”false”
xmlDoc.load(“films.xml”)
//–>
</script>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @BlueSuedeShoes spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...