I'm using the adapter tool and I keep getting this error no matter what i change in the adapters "parsers.pm" file..

Error: L:23 C:1 - XML document structures must start and end within the same ent
ity.
org.xml.sax.SAXParseException: XML document structures must start and end within
the same entity.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX

Anyone know how to correct it?

Well-formed XML

Is the XML that the adapter outputs well formed? What is at Line 23 of your output Ziptie-Element-Document?

- Leo

i'm new to this adapter

i'm new to this adapter creation, so assuming i'm looking at the correct file "ziptie-core.xsd", the 23 line says

i'm making an adapter for an ip phone via HTTP to grab it's config, i'm using the Linksys adapter as a reference which uses the ziptie-core.xsd model. if that's not the correct file, i also found the adaptermetadataschema.xsd and the 23 line is

thanks

The way an adapter works is

The way an adapter works is that it builds an XML document called the "Ziptie-Element-Document". You perl script outputs this document to standard out. Line 23 refers to this XML document.

- Leo

I figured it out, my ZED

I figured it out, my ZED wasn't closing out, somehow I accidently deleted..

close_model_filehandle($filehandle);

and the document wasn't closing out. thx