0

I get following error when executing the query

Invalid token in '[count(../[name(../)=name(.)])=count(../) and count(../*)>1'

However when installing the Itstar_xml_util package, it asks for two initial variables one quot and another call gt, which form the initial structure of the XML, I believe that is causing the error, someone knows how to configure correctly?

SQL> @C:\instantclient_11_2\itstar_xml_util.pxk
 Packge created.
 Enter value for quot: ?
 Enter value for gt: ?

Also follow the query...

SQL > declare
 l_sql_string varchar2(32000);
 l_xml xmltype;
 l_json xmltype;
 begin
 l_sql_string := 'select DESCRICAO from VEI_TIPO_VEICULO';
 l_xml := 'itstar_xml_util.sql2xml(l_sql_string);
 dbms_output.put_line(l_xml.getclobval());
 l_json := itstar_xml_util.xml2json(l_xml);
 dbms_output.put_line(l_json.getclobval());
 end;
 /
asked Apr 13, 2018 at 13:49

1 Answer 1

1

You have to call

SET DEFINE OFF

before installing the package to ensure that &quot and &gt are not recognized as substitution variables. See also docs.

answered Apr 16, 2018 at 11:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.