var YAHOO = {'Shortcuts' : {}}; YAHOO.Shortcuts.hasSensitiveText = false; YAHOO.Shortcuts.sensitivityType = []; YAHOO.Shortcuts.doUlt = false; YAHOO.Shortcuts.location = "us"; YAHOO.Shortcuts.document_id = 0; YAHOO.Shortcuts.document_type = ""; YAHOO.Shortcuts.document_title = "DSMLReader(dsmlFile) gives Invalid beginning tag :attr error"; YAHOO.Shortcuts.document_publish_date = ""; YAHOO.Shortcuts.document_author = "hamedtoolloei@yahoo.com"; YAHOO.Shortcuts.document_url = ""; YAHOO.Shortcuts.document_tags = ""; YAHOO.Shortcuts.annotationSet = { "lw_1206833257_0": { "text": "prabbit@dsml.org", "extended": 0, "startchar": 1507, "endchar": 1522, "start": 1507, "end": 1522, "extendedFrom": "", "predictedCategory": "", "predictionProbability": "0", "weight": 1, "type": ["shortcuts:/us/instance/identifier/email_address"], "category": ["IDENTIFIER"], "context": "" } }; <!-- DIV {margin:0px;}-->Hey guys, I am using jldap to communicate with ldap, and I get an exception when I am parsing a dsml file. In more details, the following line of code LDAPReader in = new DSMLReader(dsmlFile); gives the following error Thefollowing error occured handling a DSML file:LDAPLocalException: Thefollowing error occured while parsing DSML: org.xml.sax.SAXException:Invalid beginning tag :attr (84) Decoding Error org.xml.sax.SAXException: Invalid beginning tag :attr
when dsmlFile is
dsml:directory-entries <dsml:entry dn="uid=prabbit,ou=development,o=bowstreet,c=us"> dsml:objectclass dsml:oc-valuetop</dsml:oc-value> dsml:oc-valueperson</dsml:oc-value> dsml:oc-valueorganizationalPerson</dsml:oc-value> dsml:oc-valueinetOrgPerson</dsml:oc-value> </dsml:objectclass> <dsml:attr name="sn">dsml:valueRabbit</dsml:value></dsml:attr> <dsml:attr name="uid">dsml:valueprabbit</dsml:value></dsml:attr> <dsml:attr name="mail">dsml:valueprabbit@dsml.org</dsml:value></dsml:attr> <dsml:attr name="givenname">dsml:valuePeter</dsml:value></dsml:attr> <dsml:attr name="cn">dsml:valuePeter Rabbit</dsml:value></dsml:attr> </dsml:entry> </dsml:directory-entries> </dsml:dsml>
Any suggestions?? thanks
Never miss a thing. Make Yahoo your homepage.
____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs