R
RickM
I know this has been brought up before but none of the posts have any
solutions. So I will ask again.
Trying to add a new row to a repeating table programmatically.
The XML looks something like this
..
..
..
<Title>blah</Title>
<Term>Blah</Term>
<Funding>
<BeginDate>2004-06-06</BeginDate>
<EndDate>2004-06-06</EndDate>
<Amount>999</Amount>
<Year>2005</Year>
</Funding>
..
..
..
I want to add another Funding Row
Code looks like this:
IXMLDOMNode Funding=thisXML.selectSingleNode("//s0:Funding");
//Create a new "Funding Element"
IXMLDOMNode newFunding=thisXML.createNode(1,"Funding","http://www.blah.com");
//Create the Funding Elements
IXMLDOMNode End=thisXML.createNode(1,"BeginDate","http://www.blah.com");
IXMLDOMNode Start=thisXML.createNode(1,"EndDate","http://www.blah.com");
IXMLDOMNode Amt=thisXML.createNode(1,"Amount","http://www.blah.com");
IXMLDOMNode Year=thisXML.createNode(1,"Year","http://www.blah.com");
//Add the children to the new Funding element
newFunding.appendChild(End);
newFunding.appendChild(Start);
newFunding.appendChild(Amt);
newFunding.appendChild(Year);
//Add the new Funding Node
Funding.appendChild(newFunding);
This is where I get the infamous error
{http://www.blah.com}Funding' is unexpected according to content model
of parent element '{http://www.blah.com}Funding'
I have seen that quite a few other people have posted with this same
problem but I have never seen a solution.
Thanks
Rick M
solutions. So I will ask again.
Trying to add a new row to a repeating table programmatically.
The XML looks something like this
..
..
..
<Title>blah</Title>
<Term>Blah</Term>
<Funding>
<BeginDate>2004-06-06</BeginDate>
<EndDate>2004-06-06</EndDate>
<Amount>999</Amount>
<Year>2005</Year>
</Funding>
..
..
..
I want to add another Funding Row
Code looks like this:
IXMLDOMNode Funding=thisXML.selectSingleNode("//s0:Funding");
//Create a new "Funding Element"
IXMLDOMNode newFunding=thisXML.createNode(1,"Funding","http://www.blah.com");
//Create the Funding Elements
IXMLDOMNode End=thisXML.createNode(1,"BeginDate","http://www.blah.com");
IXMLDOMNode Start=thisXML.createNode(1,"EndDate","http://www.blah.com");
IXMLDOMNode Amt=thisXML.createNode(1,"Amount","http://www.blah.com");
IXMLDOMNode Year=thisXML.createNode(1,"Year","http://www.blah.com");
//Add the children to the new Funding element
newFunding.appendChild(End);
newFunding.appendChild(Start);
newFunding.appendChild(Amt);
newFunding.appendChild(Year);
//Add the new Funding Node
Funding.appendChild(newFunding);
This is where I get the infamous error
{http://www.blah.com}Funding' is unexpected according to content model
of parent element '{http://www.blah.com}Funding'
I have seen that quite a few other people have posted with this same
problem but I have never seen a solution.
Thanks
Rick M