By Code
  • Home
  • About
Sign in Subscribe

XML

A collection of 1 post
How to read optional attributes in XML with default values
Development

How to read optional attributes in XML with default values

When we are reading data from XML data sources, it is very common that when a value is not given for an attribute or an element, we have to use a default value instead. Having to check for the existence of the node each and every time we are reading
26 Jul 2016 1 min read
Page 1 of 1
By Code © 2026
  • Sign up
Powered by Ghost