ziziphus
December 11th, 2002, 09:30 AM
I am using MSXML4.0 to generate xml file from MS Project 2000.
I want the generated xml to be identical to the one generated by MS Project 2002 using its "save-as" feature.
Everything else is ok except that:
MSP 2k2 gives:
<?xml version="1.0" ?>
- <Project xmlns="http://schemas.microsoft.com/project">
<Name>EmptyProject2002.xml</Name>
<Title>Project1</Title>
while my code generates (using data from MSP2K):
<?xml version="1.0" ?>
- <Project xmlns="http://schemas.microsoft.com/project">
<Name xmlns="">EmptyProject2002.xml</Name>
<Title xmlns="">Project1</Title>
As you see the xmlns="" name-value pair gets attached to all the children of <Project> node when i use setAttribute.
how do i stop it frm doing this??
I am absolutely new to all X** (XML, XSD, blah blah blah...) so wont mind if u go to great details in explaining me where i went wrong :)
Thanks a ton.
-zz
I want the generated xml to be identical to the one generated by MS Project 2002 using its "save-as" feature.
Everything else is ok except that:
MSP 2k2 gives:
<?xml version="1.0" ?>
- <Project xmlns="http://schemas.microsoft.com/project">
<Name>EmptyProject2002.xml</Name>
<Title>Project1</Title>
while my code generates (using data from MSP2K):
<?xml version="1.0" ?>
- <Project xmlns="http://schemas.microsoft.com/project">
<Name xmlns="">EmptyProject2002.xml</Name>
<Title xmlns="">Project1</Title>
As you see the xmlns="" name-value pair gets attached to all the children of <Project> node when i use setAttribute.
how do i stop it frm doing this??
I am absolutely new to all X** (XML, XSD, blah blah blah...) so wont mind if u go to great details in explaining me where i went wrong :)
Thanks a ton.
-zz