Beginner, need help with code

Questions about XML that are not covered by the other forums should go here.
NicklasX
Posts: 1
Joined: Mon May 27, 2019 12:38 am

Beginner, need help with code

Post by NicklasX » Mon May 27, 2019 12:43 am

Hi!
I am a total beginner when it comes to XML coding, I want to make a template code that I can use in excel to get proper XML files out of.
I managed to write a code that doesnt get any validation errors but I cant seem to make the code understand the columns and whats in them (in the XML file it only shows the base code). Can anyone help me and identify whats the problem? Feel free to reply if you need additional information!
Thanks in advance!

<?xml version="1.0" standalone="yes"?>
<MaterialDeclaration xmlns:xsl="http://www.w3.org/2001/XMLSchema">

<ItemNo>ItemNo</ItemNo>

<Description>Description</Description>

<BASEMATERIAL>BASE MATERIAL</BASEMATERIAL>

<Qty>Qty</Qty>

<Weightgramea>Weight (g)/ea</Weightgramea>

<TotalWeightgram>Total Weight (g) </TotalWeightgram>

<CASNumber>CAS #</CASNumber>

<Constituents>Constituents</Constituents>

<ConstituentPercentage>Constituent %</ConstituentPercentage>

<TotalConstituentWeightgram>Total Constituent Weight (g)</TotalConstituentWeightgram>

<Comment>Comment</Comment>

</MaterialDeclaration>