...
Code Block |
---|
title | Pre-uPortal-2.5, deprecated approach |
---|
|
import org.jasig.portal.utils.DocumentFactory;
import org.w3c.dom.Document;
...
Document doc = DocumentFactory.getNewDocument();
|
Code Block |
---|
title | uPortal 2.5 approach |
---|
|
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBulder;
import org.w3c.dom.Document;
...
Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
|
The long version
If you're thinking "Wait, wait! You've been too concise – I really want to read a longer account of what's going on here." – here it is. This is a re-presentation of content ~gilbert presented to the Shibboleth community.
...