OpenXmlElement -> XmlNode

C

Colbert Zhou [MSFT]

Hello Dave,

OpenXmlElement has an Append function. But we are restricted only to Append
the valid Office elements using this method. Otherwise, we will corrupt the
Office document. For example, we can append table child XML like the
following MSDN article,
http://msdn.microsoft.com/en-us/library/cc850841(office.14).aspx

If we want to insert CustomXML, we should use AddNewPart() method and then
write the native XML using Stream.Write. See the sample in this MSDN
document,
http://msdn.microsoft.com/en-us/library/bb463871.aspx


Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

Hi;

No, I need it the other way. I want to append OpenXML to my XML. Is
there a way to do that?

thanks - dave


Hello Dave,

OpenXmlElement has an Append function. But we are restricted only to Append
the valid Office elements using this method. Otherwise, we will corrupt the
Office document. For example, we can append table child XML like the
following MSDN article,
http://msdn.microsoft.com/en-us/library/cc850841(office.14).aspx

If we want to insert CustomXML, we should use AddNewPart() method and then
write the native XML using Stream.Write. See the sample in this MSDN
document,
http://msdn.microsoft.com/en-us/library/bb463871.aspx


Best regards,
Ji Zhou
Microsoft Online Community Support


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
Top