Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml file iteration problems 1

Status
Not open for further replies.

Bob2

Programmer
Jul 3, 2000
228
SE
Hi


I wonder if someone could see what I'm doing wrong here. Basically I have a xml file that consits of information about 2 pages. I have an asp page that fetch that information for me based on some criterias. But the tree structure is giving me problems. The xml file only consits of 2 pages, I would like the information to be written out like this...

Page nr 1
Some information about page 1 bla bla bla... and so on

Page nr 2
Some information about page 2 bla bla bla... and so on



But if you try the code below you will see that it doesnt quite come out that way. So I could use some help with this one.


<?xml version=&quot;1.0&quot;?>
<PAGE>
<PAGE id=&quot;1&quot;>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>name 1 Eng</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<NAME>name 1 swe</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<TEXT>text 2 Eng</TEXT>
<NAME>name 2 Eng</NAME>
</LANGUAGE>
<TEXT>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<TEXT>text 2 Eng</TEXT>
<NAME>name 2 Eng</NAME>
</LANGUAGE>
</TEXT>
<IMAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<VERSION>
<FILE>file 1 Eng</FILE>
<NAME>version name 1 Eng</NAME>
<EXTENSION>text 1 Eng</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<ARTICLE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>article 1 Eng</NAME>
</LANGUAGE>
</ARTICLE>
<ARTICLE>
<ATTRIBUTE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>attrib 1 Eng</NAME>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
<PAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>name 2 Eng</NAME>
</LANGUAGE>
</PAGE>
</PAGE>


<PAGE id=&quot;2&quot;>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>name 1 Eng (page 2)</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<NAME>name 1 swe (page 2)</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<TEXT>text 2 Eng (page 2)</TEXT>
<NAME>name 2 Eng (page 2)</NAME>
</LANGUAGE>
<TEXT>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<TEXT>text 2 Eng (page 2)</TEXT>
<NAME>name 2 Eng (page 2)</NAME>
</LANGUAGE>
</TEXT>
<IMAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<VERSION>
<FILE>file 1 Eng (page 2)</FILE>
<NAME>version name 1 Eng (page 2)</NAME>
<EXTENSION>text 1 Eng (page 2)</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<ARTICLE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>article 1 Eng (page 2)</NAME>
</LANGUAGE>
</ARTICLE>
<ARTICLE>
<ATTRIBUTE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>attrib 1 Eng (page 2)</NAME>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
<PAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>name 2 Eng (page 2)</NAME>
</LANGUAGE>
</PAGE>
</PAGE>

</PAGE>




<%
Set objXML = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;)
objXML.async = False ' optional
objXML.validateOnParse = False ' optional
objXML.Load(Server.MapPath(&quot;test_2.xml&quot;))

Set objLst = objXML.getElementsByTagName(&quot;PAGE&quot;)
i = 0
Dim iCounter
iCounter = 1

Dim lang_nodes, t_node
For each objNode in objLst

Response.Write(&quot;Page nr &quot;) & iCounter & (&quot;<br><br>&quot;)

'page information section
Set lang_nodes = objNode.SelectNodes(&quot;LANGUAGE&quot;)
For Each t_node in lang_nodes
If t_node.getAttribute(&quot;id&quot;) = &quot;17&quot; Then
Response.Write &quot;Name: &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
End If
Next
Set lang_nodes = Nothing

'now do the text section
Set lang_nodes = objNode.SelectNodes(&quot;TEXT/LANGUAGE&quot;)
For Each t_node in lang_nodes
If t_node.getAttribute(&quot;id&quot;)= &quot;17&quot; Then
Response.Write &quot;Name: &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
Response.Write t_node.SelectSingleNode(&quot;TEXT&quot;).Text & &quot;<br>&quot;
End If
Next


Dim img_nodes, img_node
Set img_nodes = objNode.SelectNodes(&quot;IMAGE/LANGUAGE&quot;)
For Each img_node in img_nodes

'Check for the LANGUAGE id = 17
If img_node.getAttribute(&quot;id&quot;) = &quot;17&quot; Then

'get the VERSION node from inside the IMAGE/LANGUAGE node
Set t_node = img_node.SelectSingleNode(&quot;VERSION&quot;)

'get the values of whatever you need here from t_node, for example
Dim strImage
strImage = (t_node.SelectSingleNode(&quot;FILE&quot;).Text)
strImage = strImage & (t_node.SelectSingleNode(&quot;NAME&quot;).Text)
strImage = strImage & &quot;.&quot; & (t_node.SelectSingleNode(&quot;EXTENSION&quot;).Text)
Response.Write(strImage) & &quot;<br>&quot;
'Response.Write &quot; Image Extension: &quot; & t_node.SelectSingleNode(&quot;EXTENSION&quot;).Text & &quot;<br>&quot;
'or for the name attribute
Response.Write &quot; Name Attr: &quot; & t_node.getAttribute(&quot;name&quot;) & &quot;<br>&quot;
End If
Next



'now do the article section
Set article_nodes = objNode.SelectNodes(&quot;ARTICLE/LANGUAGE&quot;)
For Each t_node in article_nodes
If t_node.getAttribute(&quot;id&quot;)= &quot;17&quot; Then
Response.Write &quot;Name: &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
End If
Next

'now do the article section
Set attrib_nodes = objNode.SelectNodes(&quot;ARTICLE/ATTRIBUTE/LANGUAGE&quot;)
For Each t_node in attrib_nodes
If t_node.getAttribute(&quot;id&quot;)= &quot;17&quot; Then
Response.Write &quot;Name: &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
End If
Next

iCounter = iCounter + 1
Next
%>


Regards

M

 
[I'm not a XML expert] To me the structure of your XML is the source of trouble. I've made some changes; see if that's better...




<?xml version=&quot;1.0&quot;?>
<BOOK>
<PAGE id=&quot;1&quot;>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>name 1 Eng</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<NAME>name 1 swe</NAME>
</LANGUAGE>

<TEXT>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<TEXT>text 1 Eng</TEXT>
<NAME>name 2 Eng</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<TEXT>text 1 Swe</TEXT>
<NAME>name 2 Swe</NAME>
</LANGUAGE>
</TEXT>

<IMAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<VERSION>
<FILE>version file 1 Eng</FILE>
<NAME>version name 1 Eng</NAME>
<EXTENSION>version extention 1 Eng</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>

<ARTICLE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>article 1 Eng</NAME>
</LANGUAGE>
</ARTICLE>

<ARTICLE>
<ATTRIBUTE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>article attrib name 1 Eng</NAME>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
</PAGE>


<PAGE id=&quot;2&quot;>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>name 1 Eng (page 2)</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<NAME>name 1 swe (page 2)</NAME>
</LANGUAGE>

<TEXT>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<TEXT>text 1 Eng (page 2)</TEXT>
<NAME>name 2 Eng (page 2)</NAME>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swe&quot;>
<TEXT>text 1 Swe (page 2)</TEXT>
<NAME>name 2 Swe (page 2)</NAME>
</LANGUAGE>
</TEXT>

<IMAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<VERSION>
<FILE>version file 1 Eng (page 2)</FILE>
<NAME>version name 1 Eng (page 2)</NAME>
<EXTENSION>version extention 1 Eng (page 2)</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>

<ARTICLE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>article 1 Eng (page 2)</NAME>
</LANGUAGE>
</ARTICLE>

<ARTICLE>
<ATTRIBUTE>
<LANGUAGE id=&quot;17&quot; name=&quot;Eng&quot;>
<NAME>article attrib 1 Eng (page 2)</NAME>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>

</PAGE>

</BOOK>

 
I know, but unfortuanally this isn´t a very good solution for me to manually change this information.

Thanks anyway


/M
 
I'm not sure if you wanted to include less or more information than you are currently displaying, but you could easily format the current information with some div's.

If you replace the line:
Code:
Response.Write(&quot;Page nr &quot; & iCounter & &quot;<br><br>&quot;)

with

Response.Write(&quot;<div class=&quot;&quot;page&quot;&quot;>Page nr &quot; & iCounter & &quot;<div class=&quot;&quot;info&quot;&quot;>&quot;)

And then add the following right before you increment the iCounter variable:
Code:
Response.Write &quot;</div></div>&quot;

Then you could define some CSS classes for those divs fairly easily at the top of your document, like so:
Code:
<html>
<head>
<style>
/**** Page Class ****/
.page{
   margin-bottom: 5px; /* adds 5px margin under every page section */
   font-weight: bold;  /* makes text bold in page section */
}
/**** Info Class Inside Page Class ****/
.page .info{
   font-weight: normal; /* normal font for infor sections */
   padding-left: 25px;  /* 25 pixel padding on left will indent all contents of info section */
}
</style>
</head>
<body>

This section can be inserted before the first block of ASP code at the very top of the file. It will also allow you to do some more advanced formatting, such as changing font, colors, borders, etc.

I hope this helps,

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Hi Tarwn


I think that you have misunderstood me. When I run the asp script I get a result that look like this...


Page nr 1

Page nr 2

Name: name 1 Eng
Name: name 2 Eng
file 1 Engversion name 1 Eng.text 1 Eng
Name Attr:
Name: article 1 Eng
Name: attrib 1 Eng
Page nr 3

Name: name 2 Eng
Page nr 4

Name: name 1 Eng (page 2)
Name: name 2 Eng (page 2)
file 1 Eng (page 2)version name 1 Eng (page 2).text 1 Eng (page 2)
Name Attr:
Name: article 1 Eng (page 2)
Name: attrib 1 Eng (page 2)
Page nr 5

Name: name 2 Eng (page 2)




But since there are two main page element that hold childs I want to display it like this...

Page no 1
childnodes information that belongs to page 1


Page no 2
childnodes information that belongs to page 2


If you run the files, you will see what I mean. But in the example xml file I have set BOOK as a root element so that it would be easier to read, but in the real xml file the root element is also called PAGE. Is this a problem?




Regards


M
 
When you select nodes, having same names for child nodes as parent nodes will return all the nodes with same name wich means that even the page 1 includes another page tag there it will be as a new page for your program.
Try to make use of the firstChild and nextSibling to navigate on the real first 2 pages and within you can use selectNodes or whatever you need but dont use that on the root node.


________
George, M
 
Hi George


Maybe something like this...


Set objXMLDoc = CreateObject(&quot;Microsoft.XMLDOM&quot;)
objXMLDoc.async = False
objXMLDoc.load(Server.MapPath(&quot;test.xml&quot;))

Dim objChildNodes, strNode, iCounter
Set objChildNodes = objXMLDoc.documentElement.childNodes

iCounter = 0

For Each strNode In objChildNodes
'Select only PAGE elements
If (strNode.nodeName) = (&quot;PAGE&quot;) Then
'Select only PAGE elements with id 231
If (strNode.getAttribute(&quot;id&quot;) = &quot;231&quot;) Then
Response.write(&quot;sida &quot; & iCounter & &quot; &quot;)
Response.write(strNode.nodeName & &quot;<br><br>&quot;)

Set NodeList = objXMLDoc.documentElement.selectNodes(&quot;PAGE/LANGUAGE&quot;)
For Each Node In NodeList
If (Node.getAttribute(&quot;id&quot;) = &quot;17&quot;) Then
Response.write(Node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;)
'Response.write(Node.text & &quot;<br>&quot;)
End If
Next

End If
End If
iCounter = iCounter + 1
Next



What do you think about that?


Regards

M
 
Yes that would do it to but i still dont like that
Set NodeList = objXMLDoc.documentElement.selectNodes(&quot;PAGE/LANGUAGE&quot;), this line could still get you other data then the right PAGE node...

I need to knw 1 thing what is the role of the child <PAGE></PAGE> tag within the first... that means that is within the first page? and all the main PAGE tags has that child PAGE tag?

________
George, M
 
Hi George


Well this code is to be used with another more complex xml file. It is a very large xml file, so Tht is why I used a shorter version. Unfortunately that xml file doesn't match the code I'm using. Sorry for that. Anyway here's the long version....

<?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>
<PAGE id=&quot;231&quot; position_id=&quot;1&quot; parent_id=&quot;130&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;33&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;23&quot; hour=&quot;18&quot; minute=&quot;33&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;18&quot; name=&quot;German&quot; enabled=&quot;0&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;21&quot; name=&quot;French&quot; enabled=&quot;0&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<TEXT id=&quot;53&quot; position_id=&quot;1&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Information</NAME>
<TEXT>Product möter högsta ....
</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Information</NAME>
<TEXT>Product imødekommer a.....
</TEXT>
</LANGUAGE>
</TEXT>
<TEXT id=&quot;40&quot; position_id=&quot;2&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Revision införande av Product</NAME>
<TEXT>2003-12-01</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Revision införande av Product</NAME>
<TEXT>2003-12-01</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Revision införande av Product</NAME>
<TEXT>2003-12-01</TEXT>
</LANGUAGE>
</TEXT>
<TEXT id=&quot;41&quot; position_id=&quot;3&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Söktext Product</NAME>
<TEXT>Product möter högsta krav .....
</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Søgetekste</NAME>
<TEXT>Product imødekommer ....
</TEXT>
</LANGUAGE>
</TEXT>
<IMAGE id=&quot;51&quot; position_id=&quot;1&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>58</FILE>
<NAME>Produkt_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>162</FILE>
<NAME>Produkt_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>161</FILE>
<NAME>Produkt_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<IMAGE id=&quot;52&quot; position_id=&quot;2&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>59</FILE>
<NAME>Pall_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>164</FILE>
<NAME>Pall_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>163</FILE>
<NAME>Pall_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<IMAGE id=&quot;43&quot; position_id=&quot;3&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>44</FILE>
<NAME>Symboler hinkar</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>154</FILE>
<NAME>Symboler hinkar</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>153</FILE>
<NAME>Symboler hinkar</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<PAGE id=&quot;239&quot; position_id=&quot;1&quot; parent_id=&quot;231&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;44&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;09&quot; hour=&quot;18&quot; minute=&quot;44&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Produktinformation</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Produktinformation</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Product information</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<PAGE id=&quot;246&quot; position_id=&quot;1&quot; parent_id=&quot;239&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;23&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Hink</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Spand</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Pail</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;23&quot; name=&quot;Norwegian&quot; enabled=&quot;1&quot;>
<NAME>
</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ARTICLE id=&quot;79&quot; position_id=&quot;1&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION/>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Product 2,2 l. ø197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;54&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Benämning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product 2,2 l. ø197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Name</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product 2,2 l. ø197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Type</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product 2,2 l. ø197</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;39&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Diameter (utv)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Diameter</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Diameter (udv.)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>197</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;40&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Höjd</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>97</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Height</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>97</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Højde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>97</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;41&quot; position_id=&quot;4&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Vikt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>78</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Weight</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>78</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Vægt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>78</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;42&quot; position_id=&quot;5&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Volym (bräddfull)</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Volume (brimful)</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Volume (randfuld)</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;82&quot; position_id=&quot;7&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Bandgrepe</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>5</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Handle (plastic)</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>5</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Plastikhank</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>5</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;44&quot; position_id=&quot;8&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Tryck &amp; dekor</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Offset</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Decoration</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Offset</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Tryck</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Offset</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;45&quot; position_id=&quot;9&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Antal/pallplan</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>24</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Unit/layer (pallet)</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>24</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Antal/palleplane</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>24</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
</PAGE>
<PAGE id=&quot;247&quot; position_id=&quot;2&quot; parent_id=&quot;239&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;23&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Lock</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Låg</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Lid</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ARTICLE id=&quot;56&quot; position_id=&quot;1&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Product ø197 ES</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Product ø197 ES</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Product ø197 ES</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;46&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Varianter</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product ø197 ES</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Variant</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product ø197 ES</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Varianter</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product ø197 ES</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;39&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Diameter (utv)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Diameter</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Diameter (udv.)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;49&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Vikt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>26</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Weight</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>26</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Vægt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>26</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;47&quot; position_id=&quot;4&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Höjd monterat</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>98</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Height (mounted)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>98</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Totalhøjde (bøtte m/låg)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>98</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;48&quot; position_id=&quot;5&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Staplingshöjd mont.</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>90</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Stack height (mounted)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>90</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Stablingshøjde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>90</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;50&quot; position_id=&quot;6&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Volym under lock</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Volume under lid</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Volume under låg</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
<ARTICLE id=&quot;57&quot; position_id=&quot;2&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Product ø197 ESM</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Product ø197 ESM</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Product ø197 ESM</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;46&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Varianter</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product ø197 ESM</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Variant</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product ø197 ESM</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Varianter</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product ø197 ESM</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;39&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Diameter (utv)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Diameter</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Diameter (udv.)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;49&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Vikt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>29</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Weight</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>29</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Vægt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>29</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;47&quot; position_id=&quot;4&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Höjd monterat</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>104</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Height (mounted)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>104</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Totalhøjde (bøtte m/låg)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>104</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;48&quot; position_id=&quot;5&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Staplingshöjd mont.</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>100</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Stack height (mounted)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>100</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Stablingshøjde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>100</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;50&quot; position_id=&quot;6&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Volym under lock</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,3</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Volume under lid</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,3</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Volume under låg</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,3</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
</PAGE>
<PAGE id=&quot;248&quot; position_id=&quot;3&quot; parent_id=&quot;239&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;47&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;16&quot; hour=&quot;18&quot; minute=&quot;47&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Leveransförpackning</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Leveranceforpakning</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Delivery packaging</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ARTICLE id=&quot;33&quot; position_id=&quot;1&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Integrerad pall (hink+lock)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Integrated pallet (pail+lid)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Integreret palle (spand+låg)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;51&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Leveransförpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Integrerad pall (hink+lock)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Delivery packaging</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Integrated pallet (pail+lid)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveranceforpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Integreret palle (spand+låg)</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;52&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>960</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Quantity </NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>960</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>960</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;53&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Lev. höjd</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>1330</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Del. height</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>1330</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveringshøjde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>1330</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
<ARTICLE id=&quot;37&quot; position_id=&quot;2&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Hink på pall (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Pail on pallet (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Spand på palle (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;51&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Leveransförpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Hink på pall (1200x800)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Delivery packaging</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Pail on pallet (1200x800)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveranceforpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Spand på palle (1200x800)</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;52&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>1292</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Quantity </NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>1292</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>1292</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;53&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Lev. höjd</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>1330</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Del. height</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>1330</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveringshøjde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>1330</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
<ARTICLE id=&quot;58&quot; position_id=&quot;3&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Lock (ES) i container på pall (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Lid (ES) in container on pallet (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Låg (ES) i container på palle (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;51&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Leveransförpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Lock (ES) i container på pall (1200x800)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Delivery packaging</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Lid (ES) in container on pallet (1200x800)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveranceforpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Låg (ES) i container på palle (1200x800)</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;52&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>2592</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Quantity </NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>2592</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>2592</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;53&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Lev. höjd</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>595</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Del. height</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>595</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveringshøjde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>595</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
<ARTICLE id=&quot;288&quot; position_id=&quot;4&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Lock (ESM) i container på pall (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Lid (ESM) in container on pallet (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Låg (ESM) i container på palle (1200x800)</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;51&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Leveransförpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Lock (ESM) i container på pall (1200x800)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Delivery packaging</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Lid (ESM) in container on pallet (1200x800)</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveranceforpackning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Låg (ESM) i container på palle (1200x800)</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;52&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>2592</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Quantity </NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>2592</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Antal</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>2592</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;53&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Lev. höjd</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>645</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Del. height</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>645</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Leveringshøjde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>645</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
</PAGE>
</PAGE>
<PAGE id=&quot;1050&quot; position_id=&quot;2&quot; parent_id=&quot;231&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;12&quot; day=&quot;03&quot; hour=&quot;17&quot; minute=&quot;05&quot;/>
<END year=&quot;2004&quot; month=&quot;01&quot; day=&quot;02&quot; hour=&quot;17&quot; minute=&quot;05&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Informationslänkar</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
</PAGE>
</PAGE>



Is the asp code now appropiate using this xml file, or do you still feel it needs to be changed?


Regards


M
 
Well you could try to use right after you got the page with the ritgh id
Try to select only the nodes within the right parent node.
Something like
Set NodeList =strNode.selectNodes(&quot;PAGE/LANGUAGE&quot;)
Didnt got time to test this, but you only need the nodes within that parent node not the whole ones.
That should work since any node in the XMLDOM acts like a main xmldocument for his childs.

________
George, M
 
George


Nop I definitly need to change it. The part...

Set NodeList = objXMLDoc.documentElement.selectNodes(&quot;PAGE/LANGUAGE&quot;)
For Each Node In NodeList
If (Node.getAttribute(&quot;id&quot;) = &quot;17&quot;) Then
Response.write(Node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;)
'Response.write(Node.text & &quot;<br>&quot;)
End If
Next


not only write out the one correct value, but it also get other values from the other PAGE element that is not to displayed (PAGE id that differs from id=&quot;231&quot;).

Any ideas?


Regards


M

 
You are using objXMLDoc wich is the reference to whole document.
Try to use the selected node and do an selectNodes there or use childNodes, not shure but maybe selectNodes doesnt work with subnodes but only with root, you could try to use selectNodes within your cuent node as i told in the last post.

________
George, M
 
I'm not sure what your trying to display.

the documentElement refers to the outermost tags, in this case the PAGE with id 231. If you want to display only the 231 information then instead of looping through all the PAGE nodes, simply set objNode = objXML.DocumentElement and remove the outermost loop. This will then display all the info for that outermost page.

The next page in the hierarchy (ie, that has 231 as a parent) is 239. When I run the code on 239 using SelectNodes instead of GetElementsByTagName then I only get a title because Page 239 does not appear to have any of the other requisite information. It does not have a TEXT/LANGUAGE node or ARTICLE nodes, so the only thing that shows up is the text &quot;Product Information&quot; from the LANGUAGE node with id=17.

It's possible that I just don't have that portion of the xml file, I'm basically using what was posted above with the appropriate end tags. For testing purposes I remove the node 239 information and moved its children up to be children of 231 so I would have a few full featured nodes to play with.

The following worked, this will be a multi-post to give you everything I was working with:
Code:
<html>
<head>
<style>
/**** Page Class ****/
.page{
   margin-bottom: 5px; /* adds 5px margin under every page section */
   font-weight: bold;  /* makes text bold in page section */
}
/**** Info Class Inside Page Class ****/
.page .info{
   font-weight: normal; /* normal font for infor sections */
   padding-left: 25px;  /* 25 pixel padding on left will indent all contents of info section */
}
</style>
</head>
<body>
<%
   Set objXML = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;) 
   objXML.async = False                 ' optional 
   objXML.validateOnParse = False       ' optional 
   objXML.Load(Server.MapPath(&quot;emb.xml&quot;))
   set root = objXml.documentElement

If objXML.parseError.errorCode <> 0 Then
	Response.Write &quot;<b>Line:</b> &quot; & objXML.parseError.line & &quot;<br>&quot;
	Response.Write &quot;<b>Char:</b> &quot; & objXml.parseError.linePos & &quot;<br>&quot;
	Response.Write &quot;<b>Source</b>&quot; & objXML.parseError.srcText & &quot;<br>&quot;
	Response.Write &quot;<b>Reason</b> &quot; & objXML.parseError.reason & &quot;<br>&quot;
	Response.End
End If

Set objLst = root.selectNodes(&quot;PAGE&quot;)
i = 0 
Dim iCounter
iCounter = 1

Dim lang_nodes, t_node
For each objNode in objLst

Response.Write(&quot;<div class=&quot;&quot;page&quot;&quot;>Page nr &quot; & iCounter & &quot;<div class=&quot;&quot;info&quot;&quot;>&quot;)

	Response.Write &quot;[id: &quot; & objNode.attributes(0).text & &quot;]<br>&quot;

	'page information section
    Set lang_nodes = objNode.SelectNodes(&quot;LANGUAGE&quot;)
    For Each t_node in lang_nodes
        If t_node.getAttribute(&quot;id&quot;) = &quot;17&quot; Then
            Response.Write &quot;<b>Product Name:</b> &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
        End If
    Next
    Set lang_nodes = Nothing

    'now do the text section
    Set lang_nodes = objNode.SelectNodes(&quot;TEXT/LANGUAGE&quot;)
    For Each t_node in lang_nodes
        If t_node.getAttribute(&quot;id&quot;)= &quot;17&quot; Then
          Response.Write &quot;Name:: &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
        End If
    Next


Dim img_nodes, img_node
Set img_nodes = objNode.SelectNodes(&quot;IMAGE/LANGUAGE&quot;)
For Each img_node in img_nodes

    'Check for the LANGUAGE id = 17
    If img_node.getAttribute(&quot;id&quot;) = &quot;17&quot; Then
    
        'get the VERSION node from inside the IMAGE/LANGUAGE node
        Set t_node = img_node.SelectSingleNode(&quot;VERSION&quot;)

        'get the values of whatever you need here from t_node, for example
        Dim strImage
        strImage = (t_node.SelectSingleNode(&quot;FILE&quot;).Text)
        strImage = strImage & (t_node.SelectSingleNode(&quot;NAME&quot;).Text)
        strImage = strImage & &quot;.&quot; & (t_node.SelectSingleNode(&quot;EXTENSION&quot;).Text)
        Response.Write(strImage) & &quot;<br>&quot;
        'Response.Write &quot;    Image Extension: &quot; & t_node.SelectSingleNode(&quot;EXTENSION&quot;).Text & &quot;<br>&quot;
        'or for the name attribute
        Response.Write &quot;    Name Attr: &quot; & t_node.getAttribute(&quot;name&quot;) & &quot;<br>&quot;
    End If
Next



    'now do the article section
    Set article_nodes = objNode.SelectNodes(&quot;ARTICLE/LANGUAGE&quot;)
    For Each t_node in article_nodes
        If t_node.getAttribute(&quot;id&quot;)= &quot;17&quot; Then
          Response.Write &quot;<b>Product Code:</b> &quot; & t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;<br>&quot;
        End If
    Next

    'now do the article section
    Set attrib_nodes = objNode.SelectNodes(&quot;ARTICLE/ATTRIBUTE/LANGUAGE&quot;)
    For Each t_node in attrib_nodes
        If t_node.getAttribute(&quot;id&quot;)= &quot;17&quot; Then
          Response.Write t_node.SelectSingleNode(&quot;NAME&quot;).Text & &quot;: &quot;
          Response.Write t_node.SelectSingleNode(&quot;VALUE&quot;).Text & &quot; &quot;
          Response.Write t_node.SelectSingleNode(&quot;UNIT&quot;).Text & &quot;<br>&quot;
        End If
    Next
	Response.Write &quot;</div></div>&quot;
iCounter = iCounter + 1  
Next 
%>
</body>
</html>

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
<PAGE id=&quot;231&quot; position_id=&quot;1&quot; parent_id=&quot;130&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;33&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;23&quot; hour=&quot;18&quot; minute=&quot;33&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;18&quot; name=&quot;German&quot; enabled=&quot;0&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;21&quot; name=&quot;French&quot; enabled=&quot;0&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<TEXT id=&quot;53&quot; position_id=&quot;1&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Information</NAME>
<TEXT>Product m&amp;#246;ter h&amp;#246;gsta ....</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Information</NAME>
<TEXT>Product im&amp;#248;dekommer a.....</TEXT>
</LANGUAGE>
</TEXT>
<TEXT id=&quot;40&quot; position_id=&quot;2&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Revision inf&amp;#246;rande av Product</NAME>
<TEXT>2003-12-01</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Revision inf&amp;#246;rande av Product</NAME>
<TEXT>2003-12-01</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Revision inf&amp;#246;rande av Product</NAME>
<TEXT>2003-12-01</TEXT>
</LANGUAGE>
</TEXT>
<TEXT id=&quot;41&quot; position_id=&quot;3&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>S&amp;#246;ktext Product</NAME>
<TEXT>Product m&amp;#246;ter h&amp;#246;gsta krav .....</TEXT>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>S&amp;#248;getekste</NAME>
<TEXT>Product im&amp;#248;dekommer ....</TEXT>
</LANGUAGE>
</TEXT>
<IMAGE id=&quot;51&quot; position_id=&quot;1&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>58</FILE>
<NAME>Produkt_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>162</FILE>
<NAME>Produkt_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>161</FILE>
<NAME>Produkt_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<IMAGE id=&quot;52&quot; position_id=&quot;2&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>59</FILE>
<NAME>Pall_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>164</FILE>
<NAME>Pall_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>163</FILE>
<NAME>Pall_2,2</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<IMAGE id=&quot;43&quot; position_id=&quot;3&quot; enabled=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>44</FILE>
<NAME>Symboler hinkar</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>154</FILE>
<NAME>Symboler hinkar</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<VERSION id=&quot;2&quot; name=&quot;Normal resolution [web and online pdf]&quot;>
<FILE>153</FILE>
<NAME>Symboler hinkar</NAME>
<EXTENSION>jpg</EXTENSION>
</VERSION>
</LANGUAGE>
</IMAGE>
<PAGE id=&quot;246&quot; position_id=&quot;1&quot; parent_id=&quot;239&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;23&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Hink</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>Spand</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Pail</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;23&quot; name=&quot;Norwegian&quot; enabled=&quot;1&quot;>
<NAME>
</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ARTICLE id=&quot;79&quot; position_id=&quot;1&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION/>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Product 2,2 l. &amp;#248;197</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;54&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Ben&amp;#228;mning</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product 2,2 l. &amp;#248;197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Name</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product 2,2 l. &amp;#248;197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Type</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product 2,2 l. &amp;#248;197</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;39&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Diameter (utv)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Diameter</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>197</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Diameter (udv.)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>197</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;40&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>H&amp;#246;jd</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>97</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Height</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>97</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>H&amp;#248;jde</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>97</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;41&quot; position_id=&quot;4&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Vikt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>78</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Weight</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>78</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>V&amp;#230;gt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>78</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;42&quot; position_id=&quot;5&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Volym (br&amp;#228;ddfull)</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Volume (brimful)</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Volume (randfuld)</NAME>
<DESCRIPTION/>
<UNIT>l</UNIT>
<VALUE>2,2</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;82&quot; position_id=&quot;7&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Bandgrepe</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>5</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Handle (plastic)</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>5</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Plastikhank</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>5</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;44&quot; position_id=&quot;8&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Tryck &amp;amp; dekor</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Offset</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Decoration</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Offset</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Tryck</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Offset</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;45&quot; position_id=&quot;9&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Antal/pallplan</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>24</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Unit/layer (pallet)</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>24</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Antal/palleplane</NAME>
<DESCRIPTION/>
<UNIT>st</UNIT>
<VALUE>24</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
</PAGE>
<PAGE id=&quot;247&quot; position_id=&quot;2&quot; parent_id=&quot;239&quot; marked=&quot;0&quot;>
<DATECTRL active=&quot;0&quot;>
<START year=&quot;2003&quot; month=&quot;07&quot; day=&quot;10&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
<END year=&quot;2003&quot; month=&quot;08&quot; day=&quot;23&quot; hour=&quot;18&quot; minute=&quot;46&quot;/>
</DATECTRL>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot; enabled=&quot;1&quot;>
<NAME>Lock</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot; enabled=&quot;1&quot;>
<NAME>L&amp;#229;g</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot; enabled=&quot;1&quot;>
<NAME>Lid</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ARTICLE id=&quot;56&quot; position_id=&quot;1&quot; enabled=&quot;1&quot; marked=&quot;0&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Product &amp;#248;197 ES</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Product &amp;#248;197 ES</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Product &amp;#248;197 ES</NAME>
<DESCRIPTION>
</DESCRIPTION>
</LANGUAGE>
<ATTRIBUTE id=&quot;46&quot; position_id=&quot;1&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Varianter</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product &amp;#248;197 ES</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Variant</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product &amp;#248;197 ES</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Varianter</NAME>
<DESCRIPTION/>
<UNIT>txt</UNIT>
<VALUE>Product &amp;#248;197 ES</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;39&quot; position_id=&quot;2&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Diameter (utv)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Diameter</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>Diameter (udv.)</NAME>
<DESCRIPTION/>
<UNIT>mm</UNIT>
<VALUE>194</VALUE>
</LANGUAGE>
</ATTRIBUTE>
<ATTRIBUTE id=&quot;49&quot; position_id=&quot;3&quot;>
<LANGUAGE id=&quot;16&quot; name=&quot;Swedish&quot;>
<NAME>Vikt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>26</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;17&quot; name=&quot;English&quot;>
<NAME>Weight</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>26</VALUE>
</LANGUAGE>
<LANGUAGE id=&quot;19&quot; name=&quot;Danish&quot;>
<NAME>V&amp;#230;gt</NAME>
<DESCRIPTION/>
<UNIT>g</UNIT>
<VALUE>26</VALUE>
</LANGUAGE>
</ATTRIBUTE>
</ARTICLE>
</PAGE>
</PAGE>
[/code]

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
And here was my output (formatting will be lost during submission):
Code:
Page nr 1
[id: 246]
Product Name: Pail
Product Code: Product 2,2 l. ø197
Name: Product 2,2 l. ø197 txt
Diameter: 197 mm
Height: 97 mm
Weight: 78 g
Volume (brimful): 2,2 l
Handle (plastic): 5 g
Decoration: Offset txt
Unit/layer (pallet): 24 txt

Page nr 2
[id: 247]
Product Name: Lid
Product Code: Product ø197 ES
Variant: Product ø197 ES txt
Diameter: 194 mm
Weight: 26 g

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Hi Tarwn



Yes thats the way I pictured it. You have done an great job, Thanks a million!

By the way, what is your opinion of this xml file. I myself have trouble reading it. Is the xml file well built?

I'm told this xml file only hold information about one product-page. Could that really be the case? It seem to me that there is two product-pages.


Regards

M
 
If you ask me, it's a terrible idea to give the same name to any child node that you gave to the root node: you're just begging for confusion. And you got it.
 
I would agree on the naming technique. As far as the actual product pages, it looks to me like you have several products, I'm not entirely sure why they are arranged in a hierarchal fashion (unless the children products are things that come with the parent when you buy it). I acn't say that the file is badly built, it seems to make sense after a fashion. The multiple languages are handled well, which is a real plus (that they are there at all).

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Allright, thanks for all the input. At least I'm not alone thinking the root could be named something else. And I have to check if it really only hold information to one product-page.

I also have one that are supposed to hold information about several product-pages. The difference in that page is that there are some more PAGE elements but less TEXT,IMAGE and LANGUAGE elements.


Maybe the xml file where supposed to hold information about one product-page, and I accidently got one that holds 2 product-pages. Time will tell...



Thanks again!

Regards


M


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top