Code example for Document

Methods: renameNode

0
 
            if (tagAttr != null) {
                String tag = "tag" + tagAttr.getNodeValue();
 
                if (!tag.equals("?") && tag.equals(node.getNodeName())) {
                    document.renameNode(node, null, "attr");
                } 
            } 
        } 
    } 
 
    /** 
     * Revoves pixel data from the specified DicomObject and returns a list of 
     * Base64 encoded image data. 
     *  
     * @param dicomObject 
     * @return 
     */ 
    private List<String> extractPixelDataFromDicomObject(DicomObject dicomObject) {
        List<String> images = new ArrayList<String>();
        // this removes the data from the DICOM object