[xsd-users] “error: Not valid after content”

Akram Saye akramsaye at yahoo.se
Wed Sep 17 08:05:18 EDT 2008





I get the message “error: Not valid after content”

After I pars my message to xml. I can write to you a bit of
the code for parsing.

const xml_schema::flags
validate(0);

        ::xml_schema::properties
schema;

                        schema.no_namespace_schema_location ("test.xsd");

       

        auto_ptr<Skiva> message;

        try

        {

          ACE_DEBUG ((LM_DEBUG, ACE_TEXT("(%t)
Myconnector:: about to parse: \n%s\n"), r_strMsg.str().c_str() ));

          message = Skiva_(r_strMsg, validate, schema);

        }

                        atch (const xml_schema::exception&
e)

        {

          ACE_DEBUG ((LM_DEBUG, ACE_TEXT("(%t)
Myconnector:: handle_input(): %s\n"), 
boost::lexical_cast<std::string>(e).c_str() ));

                         
bReturn = false;

                        }

                        

                        I get the message 

                        Myconnector::
about to parse:

<Skiva xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../xml/test.xsd">

 

 
<name>

    <DATE_TIME>2006-08-15T04:04:04</DATE_TIME>

    <år>16444</år>

    <tittle>E</title>    

  </TRAIN>

 

</name>

<?xml version="1.0"
encoding="utf-8" standalone="no" ?>

Myconnector:: handle_input(): :17:7
error: Not valid after content
could you please help me with this.  

Regards
Tanha






      __________________________________________________________
Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014


More information about the xsd-users mailing list