xembly icon indicating copy to clipboard operation
xembly copied to clipboard

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

Open dmzaytsev opened this issue 9 years ago • 19 comments

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)

dmzaytsev avatar Jun 04 '15 06:06 dmzaytsev

@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 avatar Jun 04 '15 17:06 yegor256

@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"?>"

dmzaytsev avatar Jun 04 '15 17:06 dmzaytsev

@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

yegor256 avatar Jun 04 '15 17:06 yegor256

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

dmzaytsev avatar Jun 04 '15 17:06 dmzaytsev

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

davvd avatar Jun 05 '15 07:06 davvd

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

davvd avatar Jun 05 '15 07:06 davvd

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

toppratyush007 avatar Jul 18 '17 18:07 toppratyush007

@0crat in

carlosmiranda avatar Aug 10 '18 05:08 carlosmiranda

@0crat in (here)

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

0crat avatar Aug 10 '18 05:08 0crat

@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 avatar Aug 10 '18 05:08 0crat

@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 avatar Aug 10 '18 06:08 0crat

@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 avatar Aug 15 '18 07:08 0crat

@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 avatar Aug 20 '18 08:08 0crat

@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 avatar Aug 25 '18 10:08 0crat

@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 avatar Aug 30 '18 11:08 0crat

@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 avatar Sep 04 '18 11:09 0crat

@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 avatar Sep 09 '18 12:09 0crat

@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 avatar Sep 14 '18 13:09 0crat

@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 avatar Sep 19 '18 15:09 0crat

Xml without header

<a/>

May be stored as

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

https://xmltojson.github.io/

javadev avatar Nov 18 '22 23:11 javadev

@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 avatar Nov 20 '22 06:11 0crat

@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 avatar Nov 25 '22 07:11 0crat

@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 avatar Nov 30 '22 08:11 0crat

@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 avatar Dec 05 '22 09:12 0crat

@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 avatar Dec 10 '22 10:12 0crat

@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 avatar Dec 15 '22 11:12 0crat

@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 avatar Dec 20 '22 12:12 0crat

@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 avatar Jan 18 '23 11:01 0crat

@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 avatar Jan 23 '23 11:01 0crat

@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 avatar Jan 28 '23 12:01 0crat