skankman
10-04-2005, 08:39 AM
I'm new to javascript so go easy on me if you can help me with my problem, which may seem easy to many.
I would like someone to show me how I can use javascript to retrieve the data or text that is stored in an xml, elements attribute ie I want to write a javascript statement that will display the attributes of <title> on the screen
<?xml version="1.0" encoding="UTF-8"?>
<?xml:stylesheet type = "text/xsl" href = "Recipe.xsl"?>
<!-- Recipe2.xml -->
<recipe schemaLocation="Recipe.xsd">
<title created-date="2005-06-01" modified_date="2005-06-01">Smoked Chicken Pizza</title>
<number_of_servings>Makes enough for one person.</number_of_servings>
<comment>My favourite</comment>
</recipe>
appreciate any help
I would like someone to show me how I can use javascript to retrieve the data or text that is stored in an xml, elements attribute ie I want to write a javascript statement that will display the attributes of <title> on the screen
<?xml version="1.0" encoding="UTF-8"?>
<?xml:stylesheet type = "text/xsl" href = "Recipe.xsl"?>
<!-- Recipe2.xml -->
<recipe schemaLocation="Recipe.xsd">
<title created-date="2005-06-01" modified_date="2005-06-01">Smoked Chicken Pizza</title>
<number_of_servings>Makes enough for one person.</number_of_servings>
<comment>My favourite</comment>
</recipe>
appreciate any help