title: Xpath Part NULL, with xpaths set via content control toolkit
body: <p>I've been able to set, via code, the xpaths for the placeholders found in the document.</p>
  
  <pre><code>
  for (Object o : finderSdtRun.results) {
  
              if (o instanceof SdtRun){
  
                  SdtPr sdtPr=((SdtRun) o).getSdtPr();
                  Tag t = sdtPr.getTag();                 
                  CTDataBinding ctDataBinding = Context.getWmlObjectFactory().createCTDataBinding();
                  //JAXBElement jaxbDB = Context.getWmlObjectFactory().createSdtPrDataBinding(ctDataBinding);
                  sdtPr.setDataBinding(ctDataBinding);
                  ctDataBinding.setXpath("tuttappostaferragost");
                  ctDataBinding.setStoreItemID("something");          
  
                  ObjectFactory factory = new org.opendope.xpaths.ObjectFactory();
  
  
  
  
                  DataBinding db = factory.createXpathsXpathDataBinding();
                  db.setXpath("tuttappostaferragost");
                  db.setStoreItemID("something");
  
                  Xpaths.Xpath xp = factory.createXpathsXpath();
                  xp.setDataBinding(db);
                  xp.setId("something");
  
  
  
            try {
                      wordMLPackage.getMainDocumentPart().getXPathsPart().getContents().getXpath().add(xp);
                  } catch (Docx4JException e) {
                      e.printStackTrace();
                  }       
  
                  ;</code></pre>
  
  <p>The problem is that, once set, they are not recognized by word, so I thought to add the created Xpaths to a <strong>new</strong> XpathPart, and then add it to the main Document part.
  But I failed because the method:</p>
  
  <pre><code> wordMLPackage.getMainDocumentPart().getXPathsPart() </code></pre>
  
  <p>returns <strong>null</strong>. This sounded reasonable, since only content control was set, without any Xpath.</p>
  
  <p>Then I set the Xpaths via content control toolkit and the same line of code like above, returned me null, which added a lot of confusion in my yet confused ideas.</p>
  
  <p>Is there any way to tell the document that new Xpath have been added to the document?
  I mean, if there is a way to add Xpath via code (the w:databinding w:storedItemId tags), why it is not possible to make it work?</p>
  
  <p>In general I want to add Xpath and all information necessary, via code, <strong>avoiding the use of any toolkit</strong>.
  Thank you :D</p>