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

XML namespace #19

Open
tin-dao opened this issue Oct 18, 2014 · 3 comments
Open

XML namespace #19

tin-dao opened this issue Oct 18, 2014 · 3 comments

Comments

@tin-dao
Copy link

tin-dao commented Oct 18, 2014

Is there any way to create a xml element with namespace? For example:

<root xmlns:h="http://www.w3.org/TR/html4/">
  <h:table>My table</h:table>
</root>
@maxnowack
Copy link

You can use _attr for namespaces.
Example:

[{
    "root": [{
        "_attr": {
            "xmlns:h": "http://www.w3.org/TR/html4/"
        }
    }, {
        "h:table": "My table"
    }]
}]

I hope it helps and it's not too late.

@izatop
Copy link

izatop commented Jul 9, 2015

Could you describe it in readme?

@boly38
Copy link

boly38 commented Nov 24, 2023

1.0.1 last npm publish 31/01/2016 with 8 pending PR not moving since years. I would have add more example but this repo seems frozen :/ (anyway thanks for this lib ! 👍 😄 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants