by dagarfol » Thu Nov 11, 2010 8:32 pm
Hi Jason, this is the code I am trying to unmarshall. It's watermark markup code taken from a working document, which includes w:pict + all the namespaces used, w:shapetipe and w:shape.
new StringBuilder("<w:pict xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" xmlns:w10=\"urn:schemas-microsoft-com:office:word\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\" xmlns:wp=\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:pkg=\"http://schemas.microsoft.com/office/2006/xmlPackage\" xmlns:ns7=\"http://schemas.openxmlformats.org/schemaLibrary/2006/main\" xmlns:ns8=\"http://schemas.openxmlformats.org/drawingml/2006/chart\" xmlns:ns9=\"http://schemas.openxmlformats.org/drawingml/2006/chartDrawing\" xmlns:ns10=\"http://schemas.openxmlformats.org/drawingml/2006/diagram\" xmlns:pic=\"http://schemas.openxmlformats.org/drawingml/2006/picture\" xmlns:ns12=\"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:ns15=\"http://opendope.org/xpaths\" xmlns:ns16=\"http://opendope.org/conditions\" xmlns:ns17=\"http://opendope.org/questions\" xmlns:ns18=\"http://schemas.openxmlformats.org/drawingml/2006/compatibility\" xmlns:ns19=\"http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas\">")
.append("<v:shapetype id=\"_x0000_t136\" coordsize=\"21600,21600\" path=\"m@7,l@8,m@5,21600l@6,21600e\"><v:formulas><v:f eqn=\"sum #0 0 10800\"/><v:f eqn=\"prod #0 2 1\"/><v:f eqn=\"sum 21600 0 @1\"/><v:f eqn=\"sum 0 0 @2\"/><v:f eqn=\"sum 21600 0 @3\"/><v:f eqn=\"if @0 @3 0\"/><v:f eqn=\"if @0 21600 @1\"/><v:f eqn=\"if @0 0 @2\"/><v:f eqn=\"if @0 @4 21600\"/><v:f eqn=\"mid @5 @6\"/><v:f eqn=\"mid @8 @5\"/><v:f eqn=\"mid @7 @8\"/><v:f eqn=\"mid @6 @7\"/><v:f eqn=\"sum @6 0 @5\"/></v:formulas><v:path textpathok=\"t\" o:connecttype=\"custom\" o:connectlocs=\"@9,0;@10,10800;@11,21600;@12,10800\" o:connectangles=\"270,180,90,0\"/><v:textpath on=\"t\" fitshape=\"t\"/><v:handles><v:h position=\"#0,bottomRight\" xrange=\"6629,14971\"/></v:handles><o:lock v:ext=\"edit\" text=\"t\" shapetype=\"t\"/></v:shapetype><v:shape id=\"PowerPlusWaterMarkObject357831064\" o:spid=\"_x0000_s2049\" type=\"#_x0000_t136\" style=\"position:absolute;margin-left:0;margin-top:0;width:412.4pt;height:247.45pt;rotation:315;z-index:-251656192;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin\" fillcolor=\"${fillcolor}\" stroked=\"f\"><v:fill opacity=\".5\"/><v:textpath style=\"font-family:"Calibri";font-size:1pt\" string=\"${watermark}\"/><w10:wrap anchorx=\"margin\" anchory=\"margin\"/></v:shape></w:pict>");