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

great class!!! a simple question about namespaces #14

Open
virtualgadjo opened this issue Nov 20, 2019 · 1 comment
Open

great class!!! a simple question about namespaces #14

virtualgadjo opened this issue Nov 20, 2019 · 1 comment

Comments

@virtualgadjo
Copy link

Hi,
first of all, thanks a lot, this is incredibly fast...
i've got simple and probably silly question, i can't figure out how to access an attribute with non default namespace for example xsi:type, of course
$attributes = $elem->attributes();
$ref = $attributes->{"xsi[type]"};
doesn't work...
any idea would be very welcome :)
thabks again for this fantastic work
chris

@virtualgadjo
Copy link
Author

hi again,
found out... in case it helps anybody let's say you have a custom namespace foo:toto
$attributes = $elem->attributes();
$val = $elem->attributes("foo",TRUE)->toto;
returns foo:toto = 'whatever' value (whatever)
thanks again for this speedy class :)
whris

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

1 participant