Ahh, yes. The dreaded special characters problem with xml. I've been dealing with this one a lot recently. I know for sure you have to replace ANY ampersands, greater-than, less-than, single and double quotes with their equivalent escape sequences, but there are also other special characters like the degree symbol that will give you troubles as well. It also doesn't seem to be consistent, i.e., one time a particular special character will cause a failure and the next time it won't. I'm sure there is something specific that's making the difference, but I'd always rather be safe than sorry and replace them anyway before processing.
There are tons of articles on the internet about this that can be easily found with a Google search. Here's one: http://www.techrepublic.com/article/beware-of-the-ampersand-when-using-xml/5032714 Glad your issue is resolved! Best regards, Sue Sue Walker-Thornton Software Developer/Database Administrator NASA Langley Research Center|LITES Contract (757) 224-4074 -----Original Message----- From: Webshet, Sisay (ILRI) [mailto:[email protected]] Sent: Monday, February 14, 2011 3:07 AM To: [email protected] Subject: Re: [Dspace-tech] dropdown on input-forms.xml Hi All, It works fine after I deleted '& ' between terms and run index-init -----Original Message----- From: Webshet, Sisay (ILRI) Sent: Monday, February 14, 2011 8:58 AM To: '[email protected]' Subject: RE: dropdown on input-forms.xml -----Original Message----- From: Webshet, Sisay (ILRI) Sent: Monday, February 14, 2011 8:55 AM To: '[email protected]' Subject: RE: DSpace-tech Digest, Vol 58, Issue 48 Hi Friends, Here is what the log file reads 2011-02-14 08:35:47,197 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.DescribeStep': javax.servlet.ServletException: Error creating submission forms: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.dspace.submit.step.DescribeStep.getInputsReader(DescribeStep.java:41 2) at org.dspace.submit.step.DescribeStep.<init>(DescribeStep.java:116) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java: 126) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionContr oller.java:405) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionCon troller.java:344) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnly Filter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebapp ServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) at java.lang.Thread.run(Thread.java:619) Thanks -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Friday, February 11, 2011 10:59 PM To: [email protected] Subject: DSpace-tech Digest, Vol 58, Issue 48 Send DSpace-tech mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dspace-tech or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of DSpace-tech digest..." Today's Topics: 1. Re: dropdown on input-forms.xml (Thornton, Susan M. (LARC-B702)[LITES]) ---------------------------------------------------------------------- Message: 1 Date: Fri, 11 Feb 2011 13:58:27 -0600 From: "Thornton, Susan M. (LARC-B702)[LITES]" <[email protected]> Subject: Re: [Dspace-tech] dropdown on input-forms.xml To: "Webshet, Sisay (ILRI)" <[email protected]>, "[email protected]" <[email protected]> Message-ID: <03de6124b1f32240b3692ed5e591ed1617a78c9...@ndmsscc07.ndc.nasa.gov> Content-Type: text/plain; charset="utf-8" Can you post the contents of dspace.log and possibility your web server log file so we can see exactly what?s happening? Sue Walker-Thornton Software Developer/Database Administrator NASA Langley Research Center|LITES Contract (757) 224-4074 From: Webshet, Sisay (ILRI) [mailto:[email protected]] Sent: Friday, February 11, 2011 2:07 AM To: Thornton, Susan M. (LARC-B702)[LITES]; [email protected] Subject: RE: dropdown on input-forms.xml Hi, For small No of values it works fine but when you add the no values in the dropdown list let if you have 20 drop down list and want to make it 100 it brings internal system error. Thanks ________________________________ From: Thornton, Susan M. (LARC-B702)[LITES] [mailto:[email protected]] Sent: Thursday, February 10, 2011 10:46 PM To: Webshet, Sisay (ILRI); [email protected] Subject: RE: dropdown on input-forms.xml Is there a fixed number of values it can load into the drop-down and then it stops, or does it just not work at all? Sue Walker-Thornton Software Developer/Database Administrator NASA Langley Research Center|LITES Contract (757) 224-4074 From: Webshet, Sisay (ILRI) [mailto:[email protected]] Sent: Thursday, February 10, 2011 12:31 AM To: Thornton, Susan M. (LARC-B702)[LITES]; [email protected] Subject: RE: dropdown on input-forms.xml Hi sue, Thanks but this is not my first time. Of course it works for small no of values. But for long list like countries of the world (1-155 values) Dspace has a problem. Thanks ________________________________ From: Thornton, Susan M. (LARC-B702)[LITES] [mailto:[email protected]] Sent: Wednesday, February 09, 2011 7:56 PM To: Webshet, Sisay (ILRI); [email protected] Subject: RE: dropdown on input-forms.xml I don?t see anything obviously incorrect about your code. I?m not sure if this is a result of extra spaces in the email, and it?s really just an idea, but I would try removing any blank lines between your <value-pairs></value-pairs> entries. Here is an example of some customizing we did in input-forms.xml that works great: <input-forms> . . . <field> <dc-element>type</dc-element> <dc-qualifier></dc-qualifier> <!-- An input-type of qualdrop_value MUST be marked as repeatable --> <repeatable>true</repeatable> <label>Document Type</label> <input-type value-pairs-name="doc_type">dropdown</input-type> <hint>Please enter the document type.</hint> <required></required> </field> . . . <form-value-pairs> . . . <value-pairs value-pairs-name="doc_type" dc-term="type"> <pair> <displayed-value>Article</displayed-value> <stored-value>Article</stored-value> </pair> <pair> <displayed-value>Document</displayed-value> <stored-value>Document</stored-value> </pair> <pair> <displayed-value>Form</displayed-value> <stored-value>Form</stored-value> </pair> <pair> <displayed-value>Letter</displayed-value> <stored-value>Letter</stored-value> </pair> <pair> <displayed-value>Pamphlet</displayed-value> <stored-value>Pamphlet</stored-value> </pair> <pair> <displayed-value>Paper</displayed-value> <stored-value>Paper</stored-value> </pair> <pair> <displayed-value>Presentation</displayed-value> <stored-value>Presentation</stored-value> </pair> <pair> <displayed-value>Request</displayed-value> <stored-value>Request</stored-value> </pair> </value-pairs> . . . </form-value-pairs> . . . </input-forms> Hope this helps. Sue Sue Walker-Thornton Software Developer/Database Administrator NASA Langley Research Center|LITES Contract (757) 224-4074 From: Webshet, Sisay (ILRI) [mailto:[email protected]] Sent: Wednesday, February 09, 2011 1:13 AM To: [email protected] Subject: [Dspace-tech] dropdown on input-forms.xml Hi everyone, I'm using dspace 1.6.2 with jspui and I'm trying to use the input-type drop down_value in input-forms.xml, but it works for some fields with Small no of values how ever when I try to make a long list for countries of the world It doesn?t work. Internal system error.I checked several times to make sure there exist syntax error in the code. Does dspace has a limit on the dropdown values. I wonder if someone assists me ?Dspace.cfg dc.cplace.country at webui.itemdisplay.default ?metadata.dc.cplace.country at Messages.properties file ?I just add the field to the metadata registry (cplace(Element),country(Qualifier) Here is my entry in input-forms.xml: <field> <dc-schema>dc</dc-schema> <dc-element>cplace</dc-element> <dc-qualifier>country</dc-qualifier> <repeatable>true</repeatable> <label>ILRI Country Focus</label> <input-type value-pairs-name="countrylist">dropdown</input-type> <hint>Enter a country or Countries</hint> <required></required> </field> <value-pairs value-pairs-name="countrylist" dc-term="cplace_country"> <pair> <displayed-value>AFGHANISTAN</displayed-value> <stored-value>AFGHANISTAN</stored-value> </pair> <pair> <displayed-value>ALBANIA</displayed-value> <stored-value>ALBANIA</stored-value> </pair> <pair> <displayed-value>ALGERIA</displayed-value> <stored-value>ALGERIA</stored-value> </pair> </value-pairs> </form-value-pairs> </input-forms> Thanks sisay -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------ ------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech End of DSpace-tech Digest, Vol 58, Issue 48 ******************************************* ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

