Modify attribute value

Here is a part of an XML file:
<caseManagement>
               <investigationNote noteSeqNo="1" noteNo="1" investigationNoteType="INN" investigationDesc="5oy6B3eHj%2FE%3D"/>
               <investigationNote noteSeqNo="2" noteNo="2" investigationNoteType="INN" investigationDesc="aRBOig%2B6le4%3D"/>
               <investigationNote noteSeqNo="3" noteNo="3" investigationNoteType="INN" investigationDesc="fsldAFvH6dLcAjVg3RXP5Q%3D%3D"/>
               <investigationNote noteSeqNo="4" noteNo="4" investigationNoteType="INN" investigationDesc="1WNfgJJjGnv%2B32wCLuSvDE%2Fqy%2B7WzrIptImmQn21E8F3rUvv%2FUwJ4t7CPT6D7iatJzcvDWyZF%2FNR%0AThV8zR0Wn8F19U3NLOs%2B0QJuBCvXkOs%3D"/>
<caseManagement>
I am trying to change the value of the attribute "investigationDesc"(which is encrypted).
----------import java.io.*;
import org.apache.xerces.parsers.DOMParser;
import org.xml.sax.SAXException;
import org.w3c.dom.*;
public class Test {
public static void main(String[] args)
String xmlBase = "c://test//sample.xml";
DOMParser parser = new DOMParser();
try {
parser.parse(xmlBase);
} catch (SAXException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
Document doc = parser.getDocument();
NodeList nodeList = doc.getElementsByTagName("investigationNote");
for(int i =0 ; i< nodeList.getLength() ; i++)
Node node = nodeList.item(i);
NamedNodeMap nnp = node.getAttributes();
for(int j= 0 ; j < nnp.getLength() ; j++)
Attr atr = (Attr) nnp.item(j);
if(atr.getName().equalsIgnoreCase("investigationDesc"))
System.out.println(atr.getName() +" : " + atr.getNodeValue() );
atr.setNodeValue("CHANGED");
I also tried atr.setValue("XXXX");
Has the value in the DOM changed but not written to the actual XML file?
Thanks,
Chintu

here is an example of the comple code ... hope it will help you. The structure of xml is bit complex but i if ur able to do a complex one then rest is a piece of cake :)
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Task1>
<Source>
<SourceDriver>sun.jdbc.odbc.JdbcOdbcDriver</SourceDriver>
<SourceConnection>jdbc:odbc:abc_awdb</SourceConnection>
<SourceUser>ixyz</SourceUser>
<SourcePassword>zad</SourcePassword>
<Table>
<SourceTable>dbo_Agent_Half_Hour</SourceTable>
<![CDATA[ <SourceQuery>Select DateTime,SkillTargetID,TimeZone,MRDomainID,RecoveryKey,LoggedOnTimeToHalf,AvailTimeToHalf,NotReadyTimeToHalf,TalkOtherTimeToHalf,AvailableInMRDTimeToHalf,AvailTimeToHalf,NotReadyTimeToHalf,TalkOtherTimeToHalf,AvailableInMRDTimeToHalf,RoutableInMRDTimeToHalf from dbo_Agent_Half_Hour where SkillTargetID  > {value_1} and TimeZone < {value_2}</SourceQuery>]]>
<SourceParm BusinessRule="" ColumnName="DateTime" ColumnNumber="1" DataType="Numeric" DefaultValue="0" Format="mm/dd/yyyy xx:xx:xx XX"></SourceParm>
<SourceParm BusinessRule="" ColumnName="SkillTargetID" ColumnNumber="2" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="TimeZone" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="MRDomainID" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="RecoveryKey" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="LoggedOnTimeToHalf" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="AvailTimeToHalf" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="NotReadyTimeToHalf" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="TalkOtherTimeToHalf" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="AvailableInMRDTimeToHalf" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<SourceParm BusinessRule="" ColumnName="RoutableInMRDTimeToHalf" ColumnNumber="3" DataType="String" DefaultValue="" Format=""></SourceParm>
<!--To update the following fields -->
<QueryParm id_1="1" FldName_1="SkillTargetID" value_1="0"></QueryParm>
<QueryParm id_2="2" FldName_2="TimeZone" value_2="-200"></QueryParm>
     </Table>
</Source>
</Task1>
</Root>
here is the java code
import java.io.*;
import org.w3c.dom.*;
import org.apache.xerces.parsers.DOMParser;
import org.apache.xerces.*;
public class XMLWriter
static String displayStrings[] = new String[1000];
static int numberDisplayLines = 0;
static Document document;
static Node c;
public static void displayDocument(String uri)
try {
DOMParser parser = new DOMParser();
parser.parse(uri);
document = parser.getDocument();
display(document, "");
} catch (Exception e) {
e.printStackTrace(System.err);
public static void display(Node node, String indent)
if (node == null) {
return;
int type = node.getNodeType();
          NodeList nodeList = document.getElementsByTagName("QueryParm");
switch (type) {
case Node.DOCUMENT_NODE: {
displayStrings[numberDisplayLines] = indent;
displayStrings[numberDisplayLines] +=
"<?xml version=\"1.0\" encoding=\""+
"UTF-8" + "\"?>";
numberDisplayLines++;
display(((Document)node).getDocumentElement(), "");
break;
case Node.ELEMENT_NODE: {
if(node.getNodeName().equals("QueryParm")) {
for(int i =0 ; i< nodeList.getLength() ; i++)
                         Node nodeQry = nodeList.item(i);
                         NamedNodeMap nnp = nodeQry.getAttributes();
                         for(int j= 0 ; j < nnp.getLength() ; j++)
                              Attr atr = (Attr) nnp.item(j);
                              if(atr.getName().equalsIgnoreCase("value_"+(i+1)))
                                   System.out.println(atr.getName() +" : " + atr.getNodeValue() );
                                   atr.setNodeValue("CHANGED "+(i+3*2));
//System.out.println("Found");
displayStrings[numberDisplayLines] = indent;
displayStrings[numberDisplayLines] += "<";
displayStrings[numberDisplayLines] += node.getNodeName();
int length = (node.getAttributes() != null) ?
node.getAttributes().getLength() : 0;
Attr attributes[] = new Attr[length];
for (int loopIndex = 0; loopIndex < length; loopIndex++) {
attributes[loopIndex] = (Attr)node.getAttributes().item(loopIndex);
for (int loopIndex = 0; loopIndex < attributes.length; loopIndex++) {
Attr attribute = attributes[loopIndex];
displayStrings[numberDisplayLines] += " ";
displayStrings[numberDisplayLines] += attribute.getNodeName();
displayStrings[numberDisplayLines] += "=\"";
displayStrings[numberDisplayLines] += attribute.getNodeValue();
displayStrings[numberDisplayLines] += "\"";
displayStrings[numberDisplayLines]+=">";
numberDisplayLines++;
NodeList childNodes = node.getChildNodes();
if (childNodes != null) {
length = childNodes.getLength();
indent += " ";
for (int loopIndex = 0; loopIndex < length; loopIndex++ ) {
display(childNodes.item(loopIndex), indent);
break;
case Node.CDATA_SECTION_NODE: {
displayStrings[numberDisplayLines] = indent;
displayStrings[numberDisplayLines] += "<![CDATA[";
displayStrings[numberDisplayLines] += node.getNodeValue();
displayStrings[numberDisplayLines] += "]]>";
numberDisplayLines++;
break;
case Node.TEXT_NODE: {
displayStrings[numberDisplayLines] = indent;
String newText = node.getNodeValue().trim();
if(newText.indexOf("\n") < 0 && newText.length() > 0) {
displayStrings[numberDisplayLines] += newText;
numberDisplayLines++;
break;
case Node.PROCESSING_INSTRUCTION_NODE: {
displayStrings[numberDisplayLines] = indent;
displayStrings[numberDisplayLines] += "<?";
displayStrings[numberDisplayLines] += node.getNodeName();
String text = node.getNodeValue();
if (text != null && text.length() > 0) {
displayStrings[numberDisplayLines] += text;
displayStrings[numberDisplayLines] += "?>";
numberDisplayLines++;
break;
if (type == Node.ELEMENT_NODE) {
displayStrings[numberDisplayLines] = indent.substring(0,
indent.length() - 4);
displayStrings[numberDisplayLines] += "</";
displayStrings[numberDisplayLines] += node.getNodeName();
displayStrings[numberDisplayLines] += ">";
numberDisplayLines++;
indent += " ";
public static void main(String args[])
displayDocument("MyxmlFile.xml");
try {
FileWriter filewriter = new FileWriter("MyxmlFile.xml");
for(int loopIndex = 0; loopIndex < numberDisplayLines; loopIndex++){
filewriter.write(displayStrings[loopIndex].toCharArray());
filewriter.write("\n");
filewriter.close();
catch (Exception e) {
e.printStackTrace(System.err);
Regards
Kashif Qasim

Similar Messages

  • JAVA Read XML file and modify attribute values based on some conditions

    I have the following XML file "C:/Data.xml".
    If the attributes on Dimension, Metirc, Data date Matches then Add the amount values and remove the duplicate DS node.
    I looked some examples on hashtable/hashmapping but I could not find that meets my creiteria. I appriciate any direction or suggestions on this.
    <ED LG="US">
    <DS name="1" source="A" freq="Day">
    <Dimension name="code" value="3">
    <Metric ref_name="A1-ACT">
    <Data date="2011-03-04T00:00:00" amount="30" />
    </Metric>
    </Dimension>
    </DS>
    <DS name="1" source="A" freq="Day">
    <Dimension name="code" value="3">
    <Metric name="A1-ACT">
    <Data date="2011-03-04T00:00:00" amount="40" />
    </Metric>
    </Dimension>
    </DS>
    <DS name="1" source="A" freq="Day">
    <Dimension name="code" value="3">
    <Metric name="A1-ACT">
    <Data date="2011-03-05T00:00:00" amount="20" />
    </Metric>
    </Dimension>
    </DS>
    </ED>
    Expected Result:
    <ED LG="US">
    <DS name="1" source="A" freq="Day">
    <Dimension name="code" value="3">
    <Metric ref_name="A1-ACT">
    <Data date="2011-03-04T00:00:00" amount="70" />
    </Metric>
    </Dimension>
    </DS>
    <DS name="1" source="A" freq="Day">
    <Dimension name="code" value="3">
    <Metric name="A1-ACT">
    <Data date="2011-03-05T00:00:00" amount="20" />
    </Metric>
    </Dimension>
    </DS>
    </ED>
    thanks
    Edited by: user7188033 on Mar 19, 2011 1:40 PM
    Edited by: user7188033 on Mar 19, 2011 2:01 PM
    Edited by: user7188033 on Mar 19, 2011 2:02 PM

    Use XSLT for transforming the XML document.

  • Modify New VO but not able to see Attribute Value.

    Hi ,
    I am facing one problems during my VO extend. I have done below step,
    1) Created new XXCustomVO based on exsiting CustomVO.Created new Attribute, modify SQL and mapped and gave new Name XXCustomInfoVO.
    2) Assign this new XXCustomVO to new filed with Attribute name.
    4) Copy XXCustomVO.xml and all class file from Desktop to Server in respecitve folder.
    5) Import Page regions which i have created New Item.
    6) Import with JPXImport.("Porject substitutions" )
    7) Now I run the page no errors found but not able to see new attribute Data.
    Then I checked "About Page" but everything is refected correctly only not able to see new attribute data.
    Can you please help me out. Is there any wrong thing i am doing or something is missing still.
    Thanks

    Hi ,
    Even exsiting attribute value alos not display. I mean I have 20 attribute in this exsiting VO and I have add one more XX attribute and same as XXVO but non of value is display out of 21 attibute.
    Even i have hard coded "1234" for this attribute but always return null.
    Where I have to foucs.
    thanks
    Raj
    Message was edited by:
    RajPatel

  • Error when replacing attribute value using LDAPConnection.modify()

    I am using Directory SDK 4.1 from netscape. I am trying to replace/modify the value of an attribute for a particular dn. Below is the code:
    LDAPConstraints constraints = new LDAPConstraints();
    constraints.setReferrals(true);
    LDAPAttribute attribute = new LDAPAttribute("passwordexpwarned","1");
    LDAPModification mod = new LDAPModification
    (LDAPModification.REPLACE , attribute);
    getLDAPConnection().modify(dn, mod,constraints);
    Automatic Referral Handling is enabled and I want to use to anonymous authentication. When I run the code, I get the following error:
    java.lang.ClassCastException: netscape.ldap.LDAPConstraints     at netscape.ldap.LDAPConnection.performReferrals(LDAPConnection.java:5057)
    at netscape.ldap.LDAPConnection.modify LDAPConnection.java:3121)
    at netscape.ldap.LDAPConnection.modify(LDAPConnection.java:2981)
    at PasswordExpiration.setPasswordWarnedAttribute(PasswordExpiration.java:305)
    Has anyone encountered the same error or could anyone provide me some input on what could be the reason for the error? I would greatly appreciate any help in this matter.
    Thanks for your time.

    you must use LDAPSearchConstraints instead of LDAPConstraints;
    the reason is a minor but awkward bug in LDAPJDK;

  • Can we update the Category attribute values of a file

    Can we update the Category attibute values of a file with out checkout the file?
    I have set the version configuration to folder and try to update the category attribute values of a file under that folder,
    It is asking to checkout the file before modifying the category attibute values.
    Is it required to checkout the file before modifying the category attribute values of that file?
    Is there any way to update the category attribute values without checkout the file?
    Please help on this

    One of the ways i can think of is using Batch Loader script for large number of files. Mention such files in Batch Loader script, and it will update category and all meta-data required in terms of next revision.
    In case number of files are less manual checkout and check-in will help.

  • CRS-5008: Invalid attribute value: ce0 for the network interface

    Hi all,
    we try to install grid infrastructure 11GR2 (11.2.0.1) into Solaris Zone with shared network interface.
    We also modified scirpt racgvip, so it will be able to login (via ssh with key authorization) to the global zone and add or remove interface on zone. Script itself works fine.
    But it seems that orarootagent some how checks the interface, and returned error.
    In the log of the orarootagent I can see error:
    2010-10-01 21:38:49.573: [ AGFW][9] CHECK initiated by timer for: ora.net1.network sapdr2db2 1
    2010-10-01 21:38:50.473: [ora.net1.network][17] [check] NetworkAgent::checkLink returned false
    2010-10-01 21:38:50.474: [ora.net1.network][17] [check] NetInterface::sGetIpAddress {
    2010-10-01 21:38:50.474: [ora.net1.network][17] [check] netInterfaceName empty.
    2010-10-01 21:38:50.474: [ora.net1.network][17] [check] NetInterface::sGetIpAddress }
    2010-10-01 21:38:50.474: [ AGFW][17] check for resource: ora.net1.network sapdr2db2 1 completed with status: OFFLINE
    2010-10-01 21:38:50.476: [ AGFW][17] Executing command: check for resource: ora.net1.network sapdr2db2 1
    2010-10-01 21:38:50.477: [ora.net1.network][17] [check] NetworkAgent::init enter {
    2010-10-01 21:38:50.478: [ora.net1.network][17] [check] Checking if ce0 Interface is fine
    2010-10-01 21:38:50.479: [ora.net1.network][17] [check] NetInterface::scheckNetInterface returned 0
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] CRS-5008: Invalid attribute value: ce0 for the network interface
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] NetworkAgent::init exit }
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] NetInterface::scheckNetInterface returned 0
    2010-10-01 21:38:50.480: [ora.net1.network][17] [check] NetworkAgent::checkInterface returned false
    Does anybody know how the orarootagent checks for the network resource?
    It seems that there are some procedures (NetworkAgent::checkLink, NetInterface::sGetIpAddress) inside it. But the problem is that this file is binary.
    Or may be there are some ways to track how orarootagent checks?

    >
    2010-10-18 18:11:07.589: [ora.net1.network][9] {0:2:8} [check] Checking if ce0 Interface is fine
    2010-10-18 18:11:07.589: [ora.net1.network][9] {0:2:8} [check] NetInterface::scheckNetInterface returned 0
    2010-10-18 18:11:07.590: [   AGENT][9] {0:2:8} UserErrorException: Locale is
    2010-10-18 18:11:07.591: [ora.net1.network][9] {0:2:8} [check] CRS-5008: Invalid attribute value: ce0 for the network interface
    >
    Is there anything I can do with it? Will appreciate any help!Is ce0 a valid interface on the machine? (has the global zone done "ifconfig ce0 plumb"?)
    Is the zone correctly configured (check output of the export sub-command of zonecfg)?
    --Sowmini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Cn=schema attribute value error

    Directory Server : 5.1
    OS: Solaris 8.0
    I am getting this strange error while restarting ldap
    Entry "cn=schema" single-value attribute "modify TimeStamp" has multiple values.
    This error also prevent us adding any new attribute to over object classes because of schema checking.
    I did check the attribute value through the console, modifyTimeStamp does have multiple values. When I try remove the second value and save in console, I get 'Protocol error'.
    How do I fix or remove the second value from cn=schema entry.
    thanks

    Take a look at .../slapd-<instance>/config/schema/00core.ldif.
    It should have one only item as follows:
    attributeTypes: ( 2.5.18.2 NAME 'modifyTimestamp' DESC 'Standard LDAP attribu
    te type' EQUALITY generalizedTimeMatch ORDERING generalizedTimeOrderingMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE NO-USER-MODIFICATION USAGE
    directoryOperation X-ORIGIN 'RFC 2252' )

  • Why there is a difference in a "class" attribute value of html tag when viewed in "Page Source" and using "Inspector", I am refering to new Microsoft site?

    While inspecting the new Microsoft site source, I observed that the "class" attribute value of the "html" tag when seen in Page Source the value given by Tools/Web Developer/Inspect tool. Value with the tool indicates class="en-in js no-flexbox canvas no-touch backgroundsize cssanimations csstransforms csstransforms3d csstransitions fontface video audio svg inlinesvg" while that is given in Page Source is class="en-us no-js"
    The question is why different values are shown?

    Inspector is showing you the source after it's been modified by Javascript and such.
    To see the same thing in the source viewer, press '''Ctrl+A''' to select everything on the page, then right-click the selection and choose '''View Selection Source'''.

  • ALTER TYPE MODIFY ATTRIBUTE cascade including table data

    Hi,
    does anybody know, why I get "ORA-00932: inconsistent datatypes: expected REF TYPE1_T got REF TYPE1_T"
    after ALTER TYPE MODIFY ATTRIBUTE cascade including table data when the altered type contains a nested table of type REFs.
    according to the documentation this should work? This works when the type contains a nested table of types!
    ORACLE Version: 9i EE 9.2.0.3.0 64 bit
    OS: HP-UX 11
    -- create type1
    CREATE OR REPLACE
    TYPE TYPE1_T AS OBJECT
    T1COL1 NUMBER,
    T1COL2 VARCHAR2(35),
    TYPE2REF REF TYPE2_T
    -- create coll of type1 refs
    CREATE OR REPLACE
    type TYPE1COLL_T IS TABLE OF REF TYPE1_T
    -- create type2
    CREATE OR REPLACE
    TYPE TYPE2_T AS OBJECT
    T2COL1 NUMBER,
    TYPE1COLL TYPE1COLL_T
    -- create table of type1_t
    CREATE TABLE TYPE1_OTB OF TYPE1_T
    -- create table of type2_t
    CREATE TABLE TYPE2_OTB OF TYPE2_T
    nested table type1coll store as type1coll_ntb
    -- populate type1_otb
    INSERT INTO type1_otb
    VALUES(1, 'ABCDEF',NULL);
    -- populate type2_otb
    INSERT INTO type2_otb
    VALUES(1,TYPE1COLL_T());
    select * from type1_otb;
    T1COL1 T1COL2
    TYPE2REF
    1 ABCDEF
    select * from type2_otb;
    T2COL1
    TYPE1COLL
    1
    TYPE1COLL_T()
    ALTER TYPE type1_t MODIFY ATTRIBUTE t1col2 varchar2(50) cascade including table data;
    Type altered.
    select * from type1_otb;
    T1COL1 T1COL2
    TYPE2REF
    1 ABCDEF
    select * from type2_otb;
    select * from type2_otb
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected REF TYPE1_T got REF TYPE1_T

    Hi John,
    I am also facing the same problem after executing the command
    SQL> alter type product_object modify attribute (NAME VARCHAR2(80)) cascade;
    with the following error
    ORA-00932: inconsistent datatypes: expected REF WOLFOBJECTS.EMPLOYEE_OBJECT got
    WOLFOBJECTS.EMPLOYEE_OBJECT
    Could you please suggest any alternate or workaround for this issue?
    Thanks
    Sara

  • Runtime error to get the attribute value of an element

    mydoc.xml
    =========
    <?xml version = "1.0"?>
    <persons>
         <person name="Joe" age="22" />
    </persons>
    In mydox.xml, I want to get the attribute values of element person. Of course,
    in the actual XML file, it is more complicated.
    However, I get the following run-time error,
    Exception in thread "main" java.lang.NullPointerException
    at ParserTest.main(ParserTest2.java:18) on line element.hasAttribute("name")
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    public class ParserTest2
         public static void main(String[] args) throws ParserConfigurationException, SAXException
              String xmlFile = "mydoc.xml";
              doc = getDocumentFromFile(xmlFile);
              Element element = doc.getElementById("person");
              //Exception in thread "main" java.lang.NullPointerException
              if (element.hasAttribute("name"))
              {     System.out.println("attribute = " + element.getAttribute("name"));
         public static Document getDocumentFromFile(String xmlFile)
                   try
                        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                        DocumentBuilder builder = factory.newDocumentBuilder();
                        Document doc = builder.parse(new File(xmlFile));
                        return doc;
                   catch(IOException e)
                   {     e.printStackTrace();
                        return null;
                   catch(SAXException e)
                   {     e.printStackTrace();
                        return null;
                   catch(ParserConfigurationException e)
                   {     e.printStackTrace();
                        return null;
         private static Document doc;
    any ideas? Thanks!!

    [url http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html]java.lang.NullPointerException
    Thrown when an application attempts to use null in a case where an object is required. These include:
    Calling the instance method of a null object.
    Accessing or modifying the field of a null object.
    Taking the length of null as if it were an array.
    Accessing or modifying the slots of null as if it were an array.
    Throwing null as if it were a Throwable value.
    You know what line it happens on, so you know which of these cases applies. So you know that variable "element" is null at that point. How could it come to be null? You assign to it only once, two lines above. How could that assignment be null? Check the documentation for [url http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html#getElementById(java.lang.String)]org.w3c.dom.Document.getElementById().
    Repeat every time you get one of those exceptions.

  • InDesign CS3 crash during document open (at XML Attribute Value update for locked item)

    OS: Windows XP
    InDesign: InDesign Release 5.0.0.458   
    Plugins: No additional plugins
    I am facing crash in InDesign at following workflow
    Steps:
    1. Create a new document.
    2. Create a graphic frame.
    3. Place an Image (C:\TESTDIR\images\test-image.jpg)
    4. Tag the graphic frame (Right Click -> Autotag).
    5. Lock the layer.
    6. Save the doc at (C:\TESTDIR\files\test-doc.indd).
    7. Move the image file to (C:\TESTDIR\)
    8. Open the same document.
    9. InDesign Crash.
    Crash log:
    Adobe InDesign Protective Shutdown Log
    06/01/09 14:48:51
    Unhandled error condition
    Session started up at 2:44 PM on Monday, June 01, 2009
    Version: 5.0.0 - Build: 458
    Error Code 0xbfcd: "Cannot modify elements that contain locked content, or are contained by locked content. Please unlock or check out the content and try again."
    Command Sequence:
    > kOpenFileWithWindowCmdBoss = ""
    > kOpenFileCmdBoss = ""
      > kOpenDocCmdBoss = ""
       > kSetDocNameCmdBoss = ""
       > kSetDocNameCmdBoss = ""
    > kSetAllUsedStyleCmdBoss = ""
      > kSetAllUsedStyleCmdBoss = ""
    > kRestoreLinkCmdBoss = "Restore Link" : kBeforeDoMessageBoss @ kDocBoss (IID_ICOMMANDMGR)
    > kSetAssetAttributesCmdBoss = "" : kBeforeDoMessageBoss @ kDocBoss (IID_ICOMMANDMGR)
      > kSetAssetAttributesCmdBoss = "" : kAfterDoMessageBoss @ kDocBoss (IID_ICOMMANDMGR)
    > kXMLSetAttributeValueCmdBoss = "Set Attribute Value" : kBeforeDoMessageBoss @ kDocBoss (IID_ICOMMANDMGR)
      > kXMLSetAttributeValueCmdBoss = "Set Attribute Value" : kAfterDoMessageBoss @ kDocBoss (IID_ICOMMANDMGR)
    > kRestoreLinkCmdBoss = "Restore Link" : kAfterDoMessageBoss @ kDocBoss (IID_ICOMMANDMGR)
    Please let me know how to stop XML tag updation (execution of  kXMLSetAttributeValueCmdBoss) at document open.

    Is the first time one of these files crashes always on one system or another, or is it random across systems?
    It is random and it's not related to a file (one time i can open the file andanother time it cause an InDesign crash);
    It sounds very much like a font problem. Are you using a font manager, and if so, which one?
    We have reproduced the problem also on machine with only system's fonts.
    I forgot to say that the crashes happen only with InDesign files with InCopy files linked in.
    Thanks
    Alessandro

  • How to Add custome attribute value of user id

    Hi my friend.
    from below cmd i can able to view the current attribute value. but i wanted to modify the value. so can you please provide dsmod cmd for modify
    dsquery * domainroot -filter "&(objectCategory=person)(objectClass=user)(sAMAccountName=username)" -attr extensionattribute2
    Dsmod ...................?
    James
    8892722073

    Hi James,
    As you said, the command Dsmod user can be used to modify attributes of one or more existing users in the directory. However, this command could not be used to modify the custom attribute, its syntax has been set.
    You can use builted in Active Directory Attribute Editor to modify a user's attribute:
    Open Active Directory Users and Computers.
    Locate the User container, and then find the user which you want to modify.
    Right-click the user, click Properties, and then click the tab
    Attribute Editor.
    Slect the attribute which you want to modify, click Edit, modify the value, and then
    click OK to save the change.
    For your information, please refer to the following figure:
    What's more, please refer to the following article to learn to use the PowerShell AD Provider to Modify User Attributes
    Use the PowerShell AD Provider to Modify User Attributes
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/03/21/use-the-powershell-ad-provider-to-modify-user-attributes.aspx
    Regards,
    Lany Zhang

  • Attribute Value Length

    Hi,
    I tried to restrict length of attribute by using {6}. But some how it allow me to update value of attribute with 10 characters. Is their a way i can restrict ldap attribute value to fixed lenght. I i try to add more then defined length it will not allow.
    Thanks,
    Naren

    There is no way to limit an attribute value length in Directory Server, other than writing a custom plugin that will intercept ADD and Modify operations.
    The {x} length indication in the Syntax notation of an attribute description (in cn=schema) per X.500 specification is just an indication of the minimal MAXIMUM size that compliant products must support.
    Sun Directory Server has a single (configurable) limit which is the size of the LDAP requests (nsslapd-maxbersize).
    Regards,
    Ludovic.

  • Not getting attribute values in IPC routines Scenerio R/3 B2B using AP 7.0

    Hi,
    Our Scenerio is using ISA R/3 B2B using AP 7.0. I have developed IPC routines but when i debug my routines in SM53 I notice that I'm not getting any attribute value except for VKORG.
    I'm pasting the code below. Please help me if I have to implement some BADI or do something more to get the attribute values.
    I have defined the attributes properly in Routine assignment in tcode /n/sapcnd/ueass
    userexitlogger.writeLogDebug("*requirment 901*" + "Plant = "plant"||ANZ_MONATE ="+ item.getAttributeValue(ANZ_MONATE_STR).toString()"||ANZ_JAHRE="item.getAttributeValue(ANZ_JAHRE_STR).toString()"||MATKL="item.getAttributeValue(MATKL_STR).toString()"||PSTYV="item.getAttributeValue(PSTYV_STR).toString()"||VKORG="item.getAttributeValue(VKORG_STR)"||PRSFD="item.getAttributeValue(PRSFD_STR)"||MVGR2="item.getAttributeValue(MVGR2_STR).toString()"||PRSDT="item.getAttributeValue(PRSDT_STR).toString()"||AUDAT="item.getAttributeValue(AUDAT_STR).toString());
    I would reward points for help
    Many Thanks n regards,
    Dipender

    I would like to go through each Value of the xml file and give each Value a name
    e.g. from the xml file <VentCount Value=1> Retreive the value above and giving it the name VentCount. Then I would beable to use the name vent count as follows:
    setVentCount() //My own method can use as follows: setVentCount(VentCount); I would like to do his for ever value, each value with a specific name

  • Passing attribute value in session variable

    Hi All
    I need to store one field value from my SIM form as a session variable and pass them to the next page along with my session, using some jscript stuff or else. Does this make sense?
    If it is possible or anyone have any prior experience please reply.
    Thanks in advance

    We have tested a code-snippet that 'gets' attribute-values from the session:
    <invoke name='getAttribute'>
        <invoke name='getHttpSession'>
            <ref>:display.state</ref>
        </invoke>
        <s>attribute_name</s>
    </invoke>You can try 'setAttribute' in the similar way.
    Thanks,
    Adi

Maybe you are looking for

  • Ipod classic isn't recognized by the computer & keeps on restarting

    hii I am experiencing very strange problem.My apple ipod classic isn't recognized by my computer nor it formats or restore & keeps on restarting on it's own when tried to open any application.it also shows that there is 0kb free & 0kb used. please he

  • Do Web Intelligence Support Linked Universes in BO XI 3.1 sp3

    Hi Folks! I know WebI in XIR2 doesnt support Linked Universes. So we used to build reports in Deski as we need to generate reports on liniked universe.(one core and three derived) now we are upgrading the version to Xi3.1 Sp3 and i am curious to know

  • Email won't die

    I delete emails but they keep reappearing when my account refreshes. POP3 and I have it set for Delete from server when deleted from inbox. Anyone know how to fix this? Ipad2

  • Problem in download ALV output

    Hi experts,      When I try to download my ALV report output, its giving dump  'Field symbol has not yet been assigned.      In my ALV output, I have 46 fields/columns. When I have 18 fields/columns or less, I able to download, but if it is more than

  • Unable to download update to Abode Creative Cloud

    When I open ACC on my desktop, it starts to load and then I get a message that there is a new update available. I then get the message to click to download and then I get an error message tell me that I must be connected to the internet. BUT I AM, wi