You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Ron Grabowski <ro...@yahoo.com.INVALID> on 2014/11/01 02:51:47 UTC

pptx: how to parse sectionLst/section nodes from presentation.xml

How can I get the section names within a slideshow and the slides that belong to each section? The example below has 7 slides: 2 in Intro and 5 in Review. In PowerPoint 2010 the section names appear as a collapsible row on the left side within the Slide tab:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<p:presentation 
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" 
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" 
xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" 
saveSubsetFonts="1">
<!-- snip -->
<p:extLst>
<p:ext uri="{FF64AA52-CC49-43D1-AE80-FB87A981D0C9}">
<p14:sectionLst xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main">
<p14:section name="Intro" id="{71E834DF-9D09-47CB-96D5-585004CCEA17}">
<p14:sldIdLst>
<p14:sldId id="256"/>
<p14:sldId id="257"/>
</p14:sldIdLst>
</p14:section>
<p14:section name="Review" id="{4A17A8CD-2573-4B68-B88D-43CAF5F799F7}">
<p14:sldIdLst>
<p14:sldId id="258"/>
<p14:sldId id="356"/>
<p14:sldId id="310"/>
<p14:sldId id="344"/>
<p14:sldId id="345"/>
</p14:sldIdLst>
</p14:section>
</p14:sectionLst>
</p:ext>
</p:extLst>
</p:presentation>


I glanced through the test-data/slideshow folder but didn't see any files with section names.

Thanks,
Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org