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

Can't order "xmlns" attribute #886

Open
antoine-nedelec opened this issue Jan 17, 2022 · 0 comments
Open

Can't order "xmlns" attribute #886

antoine-nedelec opened this issue Jan 17, 2022 · 0 comments

Comments

@antoine-nedelec
Copy link

Q A
Bug report? yes

Steps required to reproduce the problem

  1. Add 2 attributes in a model, one of those attribute named xmlns, the other one doesn't matter the name
    /**
     * @var string
     * @SerializedName("xmlns")
     * @Groups({"xml_import"})
     * @XmlAttribute
     */
    private string $xmlns = 'string';
  1. Try to order those attributes with @AccessorOrder
  2. Check that any any case, xmlns is always at first place

Expected Result

  • Attribute should be in order specified in the @AccessorOrder (or in the order they are defined in the Model if no AccessorOrder).

Actual Result

  • xmlns is always rendered in first place.
  • Even though xmlns is a XmlNamespace, we should be able to position it where we want ?
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