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

Cannot set empty namespace xmlns="" to element #67

Open
iynehz opened this issue Sep 16, 2021 · 4 comments
Open

Cannot set empty namespace xmlns="" to element #67

iynehz opened this issue Sep 16, 2021 · 4 comments

Comments

@iynehz
Copy link

iynehz commented Sep 16, 2021

I have a similar need as https://stackoverflow.com/questions/5155102/how-to-represent-default-null-namespace-using-perl-xmllibxml. That is to explicitly have a xmlns="" on an element.

Tried $element->setNameSpace("", "", 0); it does not work.

At this moment the workaround I can think of is to do it like $parser->parse_blanced_chunk(q{<foo xmlns=""></foo>}). But this is dirty and best we fix it in setNameSpace.

shlomif added a commit that referenced this issue Sep 21, 2021
@mrenvoize
Copy link

We're having this issue too.. I see you started working on it @shlomif, do you have any plans to continue?

@shlomif
Copy link
Owner

shlomif commented Dec 12, 2022

We're having this issue too.. I see you started working on it @shlomif, do you have any plans to continue?

no immediate ones. pullreqs [with tests] are welcome

@shlomif
Copy link
Owner

shlomif commented Dec 12, 2022

@mrenvoize

@mrenvoize
Copy link

Thanks @shlomif, I'll start digging through docs around xs but have a feeling this may be outside my expertise at the moment.. I'll at least try to get a test written.

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

3 participants