Coder Social home page Coder Social logo

jsonutilities's People

Contributors

mbleron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jsonutilities's Issues

Cannot parse XML

Not sure if this project is still active but just found it and trying to use it against some XML that I'm pulling into my database as an XMLTYPE.

Getting this error when trying to query against the XMLTYPE column.

ORA-20100: FOJS0006: Invalid XML representation of JSON
ORA-20101: Invalid element 'data' in namespace ''
ORA-06512: at "SERVICENOW.XUTL_JSON", line 30
ORA-06512: at "SERVICENOW.XUTL_JSON", line 247
ORA-06512: at "SERVICENOW.XUTL_JSON", line 30
ORA-06512: at "SERVICENOW.XUTL_JSON", line 296

Here's my SQL statement:


select xutl_json.xml_to_json(response_xml) from sp_api_log
where request_type = 'room data' and request_url like '%service/rooms/00036';

Here is a fragment of the XML. Wondering if you have any thoughts about why this is failing.

<?xml version="1.0" encoding="UTF-8"?>
<data title="Room Data (Selected Building)" publisher="Space Planning &amp; Management" creator="https://www.space.utah.edu/service/rooms/00036" date="2021-03-17T10:04:21-0600" description="Limited result set.">
  <row>
    <location_code>0036000010</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00296</owning_organization_id>
    <owning_organization_name>Registrar's Office</owning_organization_name>
    <using_organization_id>00296</using_organization_id>
    <using_organization_name>Registrar's Office</using_organization_name>
    <use_name>Classroom</use_name>
    <prorated_area>3930.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>1</room_number>
    <area>3930.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>110</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>003600001A</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00296</owning_organization_id>
    <owning_organization_name>Registrar's Office</owning_organization_name>
    <using_organization_id>00296</using_organization_id>
    <using_organization_name>Registrar's Office</using_organization_name>
    <use_name>Classroom Serv</use_name>
    <prorated_area>96.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>1A</room_number>
    <area>96.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>115</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>003600001B</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00296</owning_organization_id>
    <owning_organization_name>Registrar's Office</owning_organization_name>
    <using_organization_id>00296</using_organization_id>
    <using_organization_name>Registrar's Office</using_organization_name>
    <use_name>Classroom Serv</use_name>
    <prorated_area>104.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>1B</room_number>
    <area>104.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>115</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>003600001C</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00296</owning_organization_id>
    <owning_organization_name>Registrar's Office</owning_organization_name>
    <using_organization_id>00296</using_organization_id>
    <using_organization_name>Registrar's Office</using_organization_name>
    <use_name>Classroom Serv</use_name>
    <prorated_area>55.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>1C</room_number>
    <area>55.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>115</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>0036000020</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00071</owning_organization_id>
    <owning_organization_name>College Of Fine Arts</owning_organization_name>
    <using_organization_id>00071</using_organization_id>
    <using_organization_name>College Of Fine Arts</using_organization_name>
    <use_name>Office</use_name>
    <prorated_area>123.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>2</room_number>
    <area>123.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>310</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>003600002A</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00071</owning_organization_id>
    <owning_organization_name>College Of Fine Arts</owning_organization_name>
    <using_organization_id>00071</using_organization_id>
    <using_organization_name>College Of Fine Arts</using_organization_name>
    <use_name>Office Service</use_name>
    <prorated_area>81.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>2A</room_number>
    <area>81.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>315</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>003600002B</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00071</owning_organization_id>
    <owning_organization_name>College Of Fine Arts</owning_organization_name>
    <using_organization_id>00071</using_organization_id>
    <using_organization_name>College Of Fine Arts</using_organization_name>
    <use_name>Office Service</use_name>
    <prorated_area>7.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>2B</room_number>
    <area>7.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>315</use_code>
    <use_proration>100</use_proration>
  </row>
  <row>
    <location_code>0036000050</location_code>
    <building_number>36</building_number>
    <building_name>Film and Media Arts Building</building_name>
    <owning_organization_id>00080</owning_organization_id>
    <owning_organization_name>Film &amp; Media Arts</owning_organization_name>
    <using_organization_id>00080</using_organization_id>
    <using_organization_name>Film &amp; Media Arts</using_organization_name>
    <use_name>Class Lab</use_name>
    <prorated_area>1146.0</prorated_area>
    <floor_number>0</floor_number>
    <room_number>5</room_number>
    <area>1146.0</area>
    <using_organization_proration>100</using_organization_proration>
    <use_code>210</use_code>
    <use_proration>100</use_proration>
  </row>
</data>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.