-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
problems with xml namespaces after update #621
Comments
Hi, any chance to create a failing test case? |
What makes "myProperty" a namespaced element? is it contained in a namespaced one?
|
I defined a class like this. /**
* @JMS\XmlNamespace(uri="http://www.abc.de/xml/data/1.0")
* @JMS\XmlNamespace(prefix="ebd", uri="http://www.abc.de/xml/data_ebd/definitionen/1.0")
*/
class MyClass extends BaseClass in MyClass i have a property /**
* @JMS\SerializedName("myProp")
* @JMS\Type("string")
* @JMS\XmlElement(cdata=false)
*/
private $myProp; Before update the property was mapped correctly. But now i have to redefine the namespace /**
* @JMS\SerializedName("myProp")
* @JMS\Type("string")
* @JMS\XmlElement(cdata=false, namespace="http://www.abc.de/xml/data/1.0")
*/
private $myProp; |
Was this information more usefull? |
can you apply some formatting to your comment?
|
done. i hope it is better now. sorry ;) |
i think i found the problem, but i am not sure. the xml files contains different prefixes for the same structure. for example ns1 instead of abc and revert. so maybe this is the reason for my problem. thank you for your fast response. i will close this issue |
In case the problem persists, feel fee to open the issue again. |
thank you :) |
i use jms/serializer to deserialize xml files to dto. After updating serializer via composer i have some problems with my project.
i have properties which are defined in a xml namespace and others that are not defined in a namespace. For example
or
<aPropertyWithoutNamespace>
before update there was no problem to deserialize properties without namespace. now it seems that i must explicit define a namespace, otherwise the property will not be mapped.
To make things more clear.
Before update the following works fine:
After update i have to define a namspace to get a mapped property. Like this.
What i am doing wrong?
Please let me know, if you need more details.
Thanks Nico
The text was updated successfully, but these errors were encountered: