发明名称 CREATING XML DATA FROM A DATABASE
摘要 A method is provided to generate a correct XML (eXtensible Markup Language) representation of source data from a relational database without knowing the format of source data. A XML parsing function is used to create the final XML data if the source data contains entity references. Where the source data does not contain entity reference, a XML publishing function is called to generate the final correct XML data.
申请公布号 US2016267196(A1) 申请公布日期 2016.09.15
申请号 US201615008481 申请日期 2016.01.28
申请人 International Business Machines Corporation 发明人 Man Kwai Hing
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 1. A method for converting a first character string in a database element to an XML format, the method comprising: determining an absence of an entity reference format for the first character string, the absence being indicated by failure of a XML parsing function parsing the first character string; determining a new entity reference format for the first character string; and creating a second character string in XML format from the first character string by adding the new entity reference format; wherein: the second character string is created using an XML publishing function for escaping the first character string; the step of determining an absence of an entity reference format for the first character string further includes creating a final XML format for the first character string by converting and concatenating the first character string in responsive to being successful of the XML parsing function parsing the first character string; and the steps of determining an absence of an entity reference format for the first character string and determining a new entity reference format for the first character string are performed automatically without human intervention.
地址 Armonk NY US