Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Question about xml-import

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Question about xml-import


Chronological Thread 
  • From: Steve Lemons <>
  • To: Kathryn Huxtable <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Question about xml-import
  • Date: Fri, 4 Aug 2006 10:53:17 -0400

Remove the ">" at the end of 

<field name="eduPersonEntitlement">


steve



On Aug 4, 2006, at 10:46 AM, Kathryn Huxtable wrote:

Any idea why the following file doesn't work?

<?xml version="1.0" encoding="UTF-8"?>                                                            
<registry>                                                                                                         
  <metadata>                                                                         
    <groupTypesMetaData>                                                                    
                                                                                     
      <groupTypeDef name="entitlement">
             
        <field name="eduPersonEntitlement">                               
               required="true"
               type="attribute"
               readPriv="read"                                                            
               writePriv="update"/>
 
      </groupTypeDef>
 
    </groupTypesMetaData>
  </metadata>                                                                                         
</registry>                                                                                                                      

I get the following:

     [java] 2006-08-04 09:35:57,956  INFO XmlImporter: Loading default properties [import.properties]
     [java] 2006-08-04 09:35:57,965  INFO XmlImporter: Failed to find [import.properties] in working directory, trying classpath
     [java] [Fatal Error] foo.xml:14:9: The element type "field" must be terminated by the matching end-tag "</field>".
     [java] Exception in thread "main" org.xml.sax.SAXParseException: The element type "field" must be terminated by the matching end\
-tag "</field>".
     [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
     [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
     [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
     [java]     at edu.internet2.middleware.grouper.XmlImporter.getDocument(Unknown Source)
     [java]     at edu.internet2.middleware.grouper.XmlImporter.main(Unknown Source)

The “field” element sure looks terminated to me.

-K




Archive powered by MHonArc 2.6.16.

Top of Page