Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

Missing namespace A16

Open rmboggs opened this issue 4 years ago • 6 comments

Is this a:

  • [X] Issue with the OpenXml library
  • [ ] Question on library usage

Description

The OpenXml SDK doesn't seem to contain definitions for elements in the A16 namespace (http://schemas.microsoft.com/office/drawing/2014/main). I'm sure there are other element types that are not coming up but the sample I ran into was a16:colId.

Information

  • .NET Target: .net standard 2.0
  • DocumentFormat.OpenXml Version: 2.11.3

Repro

Try to serialize the element a16:colId.

Observed

Element a16:colId serializes as an OpenXmlUnknownElement object.

Expected

Element a16:colId should serialize into an object like A16.ColId.

rmboggs avatar Aug 05 '20 22:08 rmboggs

@rmboggs thanks for reporting this. I confirmed colId and rowId elements are missing extensions. I'll try to add them soon.

tomjebo avatar Aug 14 '20 22:08 tomjebo

Thanks @tomjebo . Please let me know if you have further questions.

rmboggs avatar Aug 14 '20 23:08 rmboggs

Ugh, just found another one in the c16 namespace (http://schema.microsoft.com/office/drawing/2014/chart).

C16.uniqueId is coming though as OpenXmlUnknownElement

Should this be reported here or a new issue?

rmboggs avatar Aug 25 '20 15:08 rmboggs

@rmboggs This looks similar but to make sure, do you have an example document that shows this? The other one I can create but this one it would be quicker if you could provide a sample.

tomjebo avatar Aug 28 '20 19:08 tomjebo

I can but it is easy to quickly build a sample pptx with this element by adding a default chart using powepoint 2016. The tag shows up in the extension list of the chart series element.

Element tree: (bar chart example) ChartPart > Chartspace[0] > Chart[0] > plotArea[0] > barChart[0] > ser[0] > extLst[0] > ext[0] > c16:uniqueId

Please let me know if more details are needed.

rmboggs avatar Aug 28 '20 19:08 rmboggs

@rmboggs thanks, I was using Word. I'll try with PowerPoint.

tomjebo avatar Aug 28 '20 22:08 tomjebo