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

Xembler.xml() doesn't have an option to omit the header #64

Closed
dmzaytsev opened this issue Jun 4, 2015 · 31 comments · Fixed by #165
Closed

Xembler.xml() doesn't have an option to omit the header #64

dmzaytsev opened this issue Jun 4, 2015 · 31 comments · Fixed by #165

Comments

@dmzaytsev
Copy link

Xembly doesn't allow to generate xml fragment without the header <?xml version="1.0" encoding="UTF-8"?>.
It would be great to add a new method Xembler.xml(boolean header)

@yegor256
Copy link
Owner

yegor256 commented Jun 4, 2015

@dmzaytsev I think it's better to just build an XML without header by default. If someone will need a header, he/she can add it later, just by string concatenation. Agreed?

@yegor256 yegor256 added the bug label Jun 4, 2015
@dmzaytsev
Copy link
Author

@yegor256 maybe to add the constant to Xembly in this case?
e.g. Xembly.HEADER
public final String HEADER ="<?xml version="1.0" encoding="UTF-8"?>"

@yegor256
Copy link
Owner

yegor256 commented Jun 4, 2015

@dmzaytsev well, some users may need XML 1.1 or a different encoding or a standalone attribute there.. I would rather leave it all to the user

@dmzaytsev
Copy link
Author

@yegor256 ok, let's remove the header, I agree

@davvd
Copy link

davvd commented Jun 5, 2015

@dmzaytsev we will find someone to do this task, soon

@davvd
Copy link

davvd commented Jun 5, 2015

@dmzaytsev thanks a lot for reporting, 15 mins added to your acc, pmt ID 58643900

@toppratyush007
Copy link

@davvd Was this implemented ? Any relevant documentation would be great.

@carlosmiranda
Copy link
Collaborator

@0crat in

@0crat
Copy link
Collaborator

0crat commented Aug 10, 2018

@0crat in (here)

@carlosmiranda Job #64 is now in scope, role is DEV

@0crat
Copy link
Collaborator

0crat commented Aug 10, 2018

@0crat in (here)

@carlosmiranda Thanks for your contribution, @dmzaytsev/z! If you would be a member of the project, you would now earn +15 reputation points, as explained in §29. You can join and apply to it, see §2.

@0crat
Copy link
Collaborator

0crat commented Aug 10, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Aug 15, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Aug 20, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Aug 25, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Aug 30, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Sep 4, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Sep 9, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Sep 14, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Sep 19, 2018

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@javadev
Copy link

javadev commented Nov 18, 2022

Xml without header

<a/>

May be stored as

{
  "a": {
    "-self-closing": "true"
  },
  "#omit-xml-declaration": "yes"
}

https://xmltojson.github.io/

@0crat
Copy link
Collaborator

0crat commented Nov 20, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Nov 25, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Nov 30, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Dec 5, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Dec 10, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Dec 15, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Dec 20, 2022

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Jan 18, 2023

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Jan 23, 2023

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Jan 28, 2023

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Feb 2, 2023

@carlosmiranda/z everybody who has role DEV is banned at #64; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
volodya-lombrozo added a commit to volodya-lombrozo/xembly that referenced this issue Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants