xml


Visual Studio XML formatting messed up


I have this problem present in various visual studio version I used over the past 3 years (2010,2013,2015) and I just can't solve it. My XML document formation messes up. The thing is that some XMLs are formatted just fine and some are not.
For example I want to have it like this:
<?xml version="1.0" encoding="utf-8"?>
<MGL_Object>
<rendering:MGL_IBLight
name="ibl_tex_sunset_bg"
texture_prefix="tex_sunset"
rotation="-180"
intensity="1"
reflection_compression="1"
dynamic_range_normalization="4000"
gtr1="0"
/>
<rendering:MGL_LightSetting
name="light_settings_bg"
use_ao="1"
image_based_light="ibl_tex_sunset_bg"
/>
</MGL_Object>
But if I format document (Ctrl+K,Ctrl+D) I get this
<MGL_Object>
<rendering:MGL_IBLight
name="ibl_tex_sunset_bg"texture_prefix="tex_sunset"rotation="-180"intensity="1"reflection_compression="1"dynamic_range_normalization="4000"gtr1="0"/><rendering:MGL_LightSetting
name="light_settings_bg"use_ao="1"image_based_light="ibl_tex_sunset_bg"/></MGL_Object>
I just don't get it why.
Here are screen shots from before and after.
after
And also WHY some of the parts are underlined? I don't use any schema to validate XML!
Also while editing such underlined XML I have troubles as it is not well formatted on the fly and auto completion totally messes thing up.

Related Links

XSLT - Multiple parent groups of same name
multiple attributes in different combinations
XML Read to Array in Autoit
Count number of children of the child with more children
how to read data from an XML site and put it in a var in vb.net
XQuery request opens whole file
getting parent node according two child node text XPATH
identity constraint key matches more than one value within the scope of its selector
Where to find/how to extract image hyperlinks from zipped docx document?
How do you echo a question mark in a shell script?
While transforming a xml to xml using xsl 1.0. xsl:attribute: Cannot add attributes to an element if children have been already added to the element
Can you declare and use a variable inside an XML without using XSL to transform/parse the XML
lxml and xml namespaces - Using find and findall to get XML Tag Value
cvc-complex-type.2.4.d: Invalid content was found starting with element 'testResources'. No child element is expected at this point
Using a webservice in Delphi by manually building XML (i.e. bypassing WSDL)
Validate Xml with XSd without using XSD physical path

Categories

HOME
uml
twitter-bootstrap-3
eslint
string
wakanda
youtube-data-api-v3
jelastic
package
solver
replace
rds
gembox-spreadsheet
babeljs
mapbox
nstableheaderview
plist
mautic
datastage
magnetic-cards
libusb
job-scheduling
identity-management
production
bourbon
symbols
springfox
jquery-ias
event-store
object-storage
interpreter
resourcebundle
jboss6.x
windows-server-2003
angularjs-components
delimiter
amazon-quicksight
paperjs
quantlib
openmdao
xbox
card.io
hard-drive
sammy.js
getpixel
raft
magento-1.9.2.4
password-protection
numberpicker
contract
signal-strength
stylecop
launchctl
identification
er-diagram
java-websocket
monkey
android-instrumentation
cronexpression
docpad
pytables
meteor-packages
myspace
jboss-tools
wso2developerstudio
aurora
ellucian-scribe
contentcontrol
vigenere
morton-number
django-urls
iced-coffeescript
fail2ban
addressing-mode
contrast
easyrtc
cocos3d
insight.database
create.js
jqmodal
functional-java
buffering
spring-3
solace-mq
ie8-compatibility-mode
jeromq
octal
wp7test
multiplexing
infobright
ikimagebrowserview
catransform3d
pylucene
mbeans
xui
pagemethods
lalr
feasibility
cuda.net
cldc
business-model
pnrp
netbeans6.1

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App