Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstrutured library is unable to extract CDATA from the xml data #3075

Open
PhaneendraGunda opened this issue May 22, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@PhaneendraGunda
Copy link

PhaneendraGunda commented May 22, 2024

Sample XML:

<GENERAL_INFO><TITLE><![CDATA[Mobile Apple Devices (iPhones, iPads, and Smartwatches)]]></TITLE><SUMMARY><![CDATA[<p>This article highlights the key benefits and specifications of Apple iPhones, iPads, and Smartwatches.</p></SUMMARY></GENERAL_INFO>

Code to fetch data from the XML

from unstructured.partition.html import partition_html

_text = ' '.join([element.text for element in partition_html(text=_html_text)])

Is there any flag or function to enable extracting content from the CDATA ?

@PhaneendraGunda PhaneendraGunda added the bug Something isn't working label May 22, 2024
@shreyanid
Copy link
Contributor

Thanks for the issue @PhaneendraGunda ! We'll discuss and follow up

@PhaneendraGunda PhaneendraGunda changed the title Unstrutured library is unable extract CDATA from the xml data Unstrutured library is unable to extract CDATA from the xml data May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants